{"id":13561263,"url":"https://github.com/caarlos0/fork-cleaner","last_synced_at":"2025-04-08T00:39:42.902Z","repository":{"id":37276433,"uuid":"70362025","full_name":"caarlos0/fork-cleaner","owner":"caarlos0","description":"Quickly clean up unused forks on your github account.","archived":false,"fork":false,"pushed_at":"2025-03-14T08:37:34.000Z","size":437,"stargazers_count":335,"open_issues_count":4,"forks_count":17,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-31T23:37:28.512Z","etag":null,"topics":["cleanup","github-api","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caarlos0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":["caarlos0"]}},"created_at":"2016-10-08T23:01:45.000Z","updated_at":"2025-03-17T17:48:57.000Z","dependencies_parsed_at":"2024-02-09T12:40:23.301Z","dependency_job_id":"440b2ca6-5070-4f67-888c-93383975d5d3","html_url":"https://github.com/caarlos0/fork-cleaner","commit_stats":{"total_commits":260,"total_committers":16,"mean_commits":16.25,"dds":0.5307692307692308,"last_synced_commit":"74fe75897ad06385a4f8296de59058a7c198fe02"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Ffork-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Ffork-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Ffork-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caarlos0%2Ffork-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caarlos0","download_url":"https://codeload.github.com/caarlos0/fork-cleaner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755560,"owners_count":20990620,"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","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":["cleanup","github-api","golang"],"created_at":"2024-08-01T13:00:54.264Z","updated_at":"2025-04-08T00:39:42.877Z","avatar_url":"https://github.com/caarlos0.png","language":"Go","funding_links":["https://github.com/sponsors/caarlos0"],"categories":["Go","Applications"],"sub_categories":["Development Tools"],"readme":"# fork-cleaner\n\n[![Release](https://img.shields.io/github/release/caarlos0/fork-cleaner.svg?style=for-the-badge)](https://github.com/caarlos0/fork-cleaner/releases/latest)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge)](LICENSE.md)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/caarlos0/fork-cleaner/build.yml?style=for-the-badge)](https://github.com/caarlos0/fork-cleaner/actions?workflow=build)\n[![Go Report Card](https://goreportcard.com/badge/github.com/caarlos0/fork-cleaner?style=for-the-badge)](https://goreportcard.com/report/github.com/caarlos0/fork-cleaner)\n[![Godoc](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://pkg.go.dev/github.com/caarlos0/fork-cleaner)\n[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=for-the-badge)](https://github.com/goreleaser)\n\nQuickly clean up old and inactive forks on your GitHub account.\n\n![](https://user-images.githubusercontent.com/245435/104655305-4a843f80-569c-11eb-8cd5-7f55b8104375.gif)\n\n## Installation\n\n### Homebrew\n\n```sh\nbrew install caarlos0/tap/fork-cleaner\n```\n\n### snap\n\n```sh\nsnap install fork-cleaner\n```\n\n### apt\n\n```sh\necho 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list\nsudo apt update\nsudo apt install fork-cleaner\n```\n\n### yum\n\n```sh\necho '[caarlos0]\nname=caarlos0\nbaseurl=https://repo.caarlos0.dev/yum/\nenabled=1\ngpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo\nsudo yum install fork-cleaner\n```\n\n### deb/rpm/apk\n\nDownload the `.apk`, `.deb` or `.rpm` from the [latest release](https://github.com/caarlos0/fork-cleaner/releases/latest) and install with the appropriate commands.\n\n### Manually\n\nDownload the binaries from the [latest release](https://github.com/caarlos0/fork-cleaner/releases/latest) or clone the repository and build from source.\n\n## Usage\n\nYou'll need to [create a personal access token](https://github.com/settings/tokens/new?scopes=repo,delete_repo\u0026description=fork-cleaner) with `repo` and `delete_repo`\npermissions. You'll need to pass this token to `fork-cleaner` with the `--token` flag.\n\n```sh\nfork-cleaner --token \"\u003ctoken\u003e\"\n```\n\n`fork-cleaner` will load your forked repositories, displaying the oldest first. This can take a little while as `fork-cleaner` will iterate over the page of forks and check the upstream repository's status (e.g. checking for active PRs).\n\n## Troubleshooting\n\n### Taking forever to load?\n\nThe app hits various endpoints in order to collect information on the upstream repository, this can take a while if you have a lot of forks. Setting `-skip-upstream=true` will skip checking commits, issues, PRs, etc on each upstream repository, potentially alleviating this issue.\n\n### I've hit the rate limit.\n\nYou can check your current limits by calling GitHub's API:\n\n```sh\ncurl -L \\\n  -H \"Accept: application/vnd.github+json\" \\\n  -H \"Authorization: Bearer \u003cYOUR-TOKEN\u003e\" \\\n  -H \"X-GitHub-Api-Version: 2022-11-28\" \\\n  https://api.github.com/rate_limit\n```\n\n## Stargazers\n\n[![Stargazers over time](https://starchart.cc/caarlos0/fork-cleaner.svg)](https://starchart.cc/caarlos0/fork-cleaner)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0%2Ffork-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaarlos0%2Ffork-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaarlos0%2Ffork-cleaner/lists"}