CLI tool to delete your old forks.
Fetches your forked GitHub repositories, then prompts for their individual deletion.
Provides additional information about each fork to help inform your decision.
GITHUB_ACCESS_TOKEN: required- PAT with
repoanddelete_reposcopes
- PAT with
GITHUB_HOST: optional- default:
https://api.github.com - override for enterprise users (e.g.
https://api.github.company.com)
- default:
# install deps
mix deps.get
# dev
GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN GITHUB_HOST=$GITHUB_HOST iex -S mix
# build
MIX_ENV=prod mix escript.build
# run
GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN ./fork_cleaner -s:skip_with_upstream_prs- Automatically skips forks with open pull requests to the upstream repo.
- Defaults to
false. - CLI flag:
-sor--skip-with-upstream-prs