Check all of the projects you've forked and get interactive prompts for deleting those that you never created PRs for.
What it looks like in action:
> npm start
> [email protected] start
> tsx .
Fetching list of forks...
Found 39.
Fetching PR info for acpi_call...
4 PRs found.
Fetching PR info for amplitude-dev-center...
1 PR found.
Fetching PR info for appmetrics-dash...
2 PRs found.
Fetching PR info for bandcamp-player...
No PRs found.
? Do you want to delete bandcamp-player? ( https://github.com/s-h-a-d-o-w/bandcamp-player ) (y/N)
Requires node.js.
- Double-check my code! It's simple and deleting repos automatically is obviously serious stuff. Which is maybe why github doesn't offer anything like this via the UI.
- Clone this repo.
- Create a
.env
file containingGITHUB_USERNAME
andGITHUB_TOKEN
with appropriate values. The token has to have admin write permissions if you actually want to delete repos! npm install
npm start