Skip to content

GitHub CLI extension to auto-approve and auto-merge dependency update pull requests (e.g. Dependabot) with one command, streamlining CI/CD workflows.

License

Notifications You must be signed in to change notification settings

sbolel/gh-ext-pr-approve-and-auto-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-pr-approve-and-auto-merge (GitHub CLI extension)

buy me a coffee

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.

Requirements

  • GitHub CLI and an authenticated session (gh auth login).
  • bats to run the test suite.

Installation

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 .

Usage

# 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.

Running the tests

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

About

GitHub CLI extension to auto-approve and auto-merge dependency update pull requests (e.g. Dependabot) with one command, streamlining CI/CD workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Languages