This little snippet leans on the multi-select UX of fzf
. It's a quick way to delete multiple repos from the command line.
needs:
Tweak this part to customise the query
| jq '.[] | .full_name' \
If you want to only list repos that are a fork and is a template repo:
| jq '.[] | select(.fork==true) | select(.is_template==true) | .full_name' \
More info on githubs documentation on the repo object
[!NOTE] this requires a personal access token with
delete_repo
scope
~