gh-pr-approve-and-auto-merge
approves and auto-merges dependency bump pull requests. It verifies that each PR represents a version bump and that required checks are passing before approving and merging through the GitHub CLI.
- GitHub CLI and an authenticated session (
gh auth login
). bats
to run the test suite.
Install the extension via the GitHub CLI:
gh extension install sinanbolel/gh-pr-approve-and-auto-merge
You can also install from a local clone:
# from inside the cloned repository
gh extension install .
# preview actions without merging
gh pr approve-and-auto-merge 123,124,125 --dry-run
# approve and merge after confirmation
gh pr approve-and-auto-merge 42 --run --yes
Run gh pr approve-and-auto-merge --help
for the full list of options.
With bats
installed you can run the tests with:
bats test
If you prefer not to install bats
globally, invoke it with npx
:
npx bats test