Skip to content

Instantly share code, notes, and snippets.

@oscard0m
Last active June 12, 2020 08:45
Show Gist options
  • Save oscard0m/e179608b46550abc2723f26b693ba2fb to your computer and use it in GitHub Desktop.
Save oscard0m/e179608b46550abc2723f26b693ba2fb to your computer and use it in GitHub Desktop.
Github CLI: Approve multiple PR's
while read pr; do
echo "Reviewing $pr"
gh pr review "$pr" --approve"
done <list-prs.txt
@oscard0m
Copy link
Author

oscard0m commented May 29, 2020

list-prs.txt format

https://github.com/${ORG | USER}/${REPO}/pull/1
https://github.com/${ORG | USER}/${REPO}/pull/2
...
https://github.com/${ORG | USER}/${REPO}/pull/N

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment