{"id":17302379,"url":"https://github.com/coriolinus/git-clean","last_synced_at":"2025-10-13T17:06:14.119Z","repository":{"id":79235945,"uuid":"549830792","full_name":"coriolinus/git-clean","owner":"coriolinus","description":"Clean up branches which have been merged or closed","archived":false,"fork":false,"pushed_at":"2025-10-06T10:42:35.000Z","size":158,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T12:29:39.958Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coriolinus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-10-11T20:04:12.000Z","updated_at":"2025-10-06T10:42:07.000Z","dependencies_parsed_at":"2023-11-15T10:25:06.368Z","dependency_job_id":"39ceecb9-5280-4c5a-9c45-3f623fdb4120","html_url":"https://github.com/coriolinus/git-clean","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coriolinus/git-clean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coriolinus%2Fgit-clean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coriolinus%2Fgit-clean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coriolinus%2Fgit-clean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coriolinus%2Fgit-clean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coriolinus","download_url":"https://codeload.github.com/coriolinus/git-clean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coriolinus%2Fgit-clean/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016282,"owners_count":26085827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["hacktoberfest"],"created_at":"2024-10-15T11:47:23.297Z","updated_at":"2025-10-13T17:06:14.088Z","avatar_url":"https://github.com/coriolinus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `git-clean`\n\nClean your repo of excess branches which have been merged upstream.\n\nThere are five possible cases for a local branch:\n\n1. It is the default branch (`main`/`master`)\n2. Not pushed to the remote.\n3. Pushed to the remote but 0 PRs created.\n4. Pushed to the remote with at least 1 PR created, and at least 1 PR is not closed.\n5. Pushed to the remote with at least 1 PR created, and all PRs are closed.\n\nIn cases 1 - 4, we retain the branch: it is assumed to still be in development or otherwise relevant.\nHowever, in state 5, we delete the branch: it is no longer relevant.\n\n## Installation\n\nThis project has no relation to the [`git-clean` on crates.io](https://crates.io/crates/git-clean).\n\nInstead:\n\n```bash\ncargo install --git https://github.com/coriolinus/git-clean\n```\n\n## Authorization\n\nIn the event that you want to use this on a private repo, you will need to authenticate your requests with a token.\n\nYou need to create a classic token at \u003chttps://github.com/settings/tokens\u003e with at least the permissions `repo` and `read:org`.\n\nProvide the token with the `--personal-access-token TOKEN` option on the command line. This will cache the token for future use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoriolinus%2Fgit-clean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoriolinus%2Fgit-clean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoriolinus%2Fgit-clean/lists"}