Created
August 11, 2023 14:01
-
-
Save toefel18/d0faa453e3b884b34beea70486ee37df to your computer and use it in GitHub Desktop.
Useful GH commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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