Created
May 7, 2021 06:27
-
-
Save martinnormark/cb355e533859c9486b446f94c3836082 to your computer and use it in GitHub Desktop.
Quickly merge multiple Pull Requests from PowerShell.
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
$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