A simple extension to interactively search, approve, merge PRs from the CLI.
gh extension install scnewma/gh-mass-prs
This extension is an interactive wrapper on top of gh search prs
so you can
provide the same flags to it as to gh search prs
.
# view open PRs waiting for your review
$ gh mass-prs --state=open --review-requested=@me
# view dependabot PRs waiting for your review
$ gh mass-prs --state=open --review-requested=@me --label dependencies --archived=false
When in the FZF window, you have the following actions available to you.
ctrl-a
: approve the PRctrl-g
: merge the PRctrl-e
: approve and merge the PR
GraphQL: Pull request Auto merge is not allowed for this repository (enablePullRequestAutoMerge)
See GitHub documentation for enabling auto-merge.