Skip to content

Instantly share code, notes, and snippets.

@YOU54F
Created May 5, 2021 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YOU54F/21c09b230620c15893328294af53e1fd to your computer and use it in GitHub Desktop.
Save YOU54F/21c09b230620c15893328294af53e1fd to your computer and use it in GitHub Desktop.
merge all open PR's across all repos for a github userr
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