Skip to content

Instantly share code, notes, and snippets.

@martinnormark
Created May 7, 2021 06:27
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 martinnormark/cb355e533859c9486b446f94c3836082 to your computer and use it in GitHub Desktop.
Save martinnormark/cb355e533859c9486b446f94c3836082 to your computer and use it in GitHub Desktop.
Quickly merge multiple Pull Requests from PowerShell.
$prs = gh pr list | Select-String -Pattern "\d\d\d" | Select-object -last 10
([regex]"\d\d\d").matches($prs) | % { gh pr merge $_.value -m -d }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment