{"id":31598551,"url":"https://github.com/srid/master","last_synced_at":"2026-02-28T21:32:10.003Z","repository":{"id":317918722,"uuid":"1069363939","full_name":"srid/master","owner":"srid","description":"Dethrone \"main\" and restore \"master\" to its rightful glory.","archived":false,"fork":false,"pushed_at":"2025-10-03T20:36:20.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-11T02:35:08.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-03T20:15:26.000Z","updated_at":"2025-10-04T13:22:24.000Z","dependencies_parsed_at":"2025-10-03T22:25:44.292Z","dependency_job_id":"2df9e6b1-01ee-48f0-a3e3-c1847259484f","html_url":"https://github.com/srid/master","commit_stats":null,"previous_names":["srid/master"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srid/master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fmaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fmaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fmaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fmaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srid","download_url":"https://codeload.github.com/srid/master/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srid%2Fmaster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29952263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-06T05:46:09.539Z","updated_at":"2026-02-28T21:32:09.965Z","avatar_url":"https://github.com/srid.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# master\n\nDethrone \"main\" and restore \"master\" to its rightful glory.\n\n## About\n\nA script that [unwoke](https://srid.ca/unwoke)'ifies the default branch by renaming it from \"main\" to \"master\".\n\n## Prerequisites\n\n- [Nix with flakes enabled](https://nixos.asia/en/install)\n  - (Or, run `script.sh` directly)\n- GitHub CLI (`gh`) authenticated with appropriate permissions\n  - Run `nix run nixpkgs#gh auth login`\n\n## Usage\n\n```bash\nnix run github:srid/master -- \u003crepo-url\u003e\n```\n\nThe script will:\n1. Check if the repository's default branch is \"main\"\n2. If not, exit (nothing to do)\n3. If yes, clone the repository\n4. Rename the branch from \"main\" to \"master\"\n5. Push the new branch\n6. Update the repository's default branch setting\n7. Delete the old one\n\n## Example\n\n```bash\nnix run github:srid/master -- https://github.com/yourname/yourrepo\n```\n\n## License\n\nSee LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fmaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrid%2Fmaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrid%2Fmaster/lists"}