Skip to content

Instantly share code, notes, and snippets.

@toefel18
Created August 11, 2023 14:01
Show Gist options
  • Save toefel18/d0faa453e3b884b34beea70486ee37df to your computer and use it in GitHub Desktop.
Save toefel18/d0faa453e3b884b34beea70486ee37df to your computer and use it in GitHub Desktop.
Useful GH commands
# close all waiting workflows
gh run list --limit 100 --status waiting --json databaseId --jq '.[].databaseId' | grep -v "USE THIS TO ECLUDE WORKFLOWS" | xargs -l gh run cancel
# close all prs
gh pr list --json number --jq '.[].number' | grep -v "USE THIS TO EXCLUDE A FEW" | xargs -l gh pr close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment