Created
March 4, 2025 16:50
-
-
Save schmiddim/b68ae7bdda977de80922db592e9620b5 to your computer and use it in GitHub Desktop.
View and approve all Pull requests
This file contains hidden or 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
#!/bin/zsh | |
state=open | |
pullis=`gh search prs --review-requested @me --state $state --json number,title,state,url,author,repository| jq -rc '.[]| "gh pr diff \(.number) --repo=\(.repository.nameWithOwner);sleep 1; gh pr review \(.number) --repo=\(.repository.nameWithOwner) -a" '` | |
for pulli in $pullis;do | |
echo $pulli | |
eval $pulli | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment