Created
May 5, 2021 19:52
-
-
Save YOU54F/21c09b230620c15893328294af53e1fd to your computer and use it in GitHub Desktop.
merge all open PR's across all repos for a github userr
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
for repo in $(gh repo list -L 100 | awk {'print $1}'); do | |
for pr_no in $(gh pr list -R $repo | awk {'print $1}'); do | |
gh pr merge -R $repo -s $pr_no | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment