A Github CLI extension script to combine multiple dependabot pull requests into a single pull request. Based loosely on combine-prs-workflow.
gh extension install matt-bartel/gh-merge-dependabot
gh merge-dependabot [-n NAME] [--no-push] [--no-pr] [BRANCHES...]
-n NAME
Set the name of the generated pull request. Default: "chore: dependabot version updates"
--no-push
Do not push changes to the remote. This implies --no-pr.
--no-pr
Do not create a pull request.
BRANCHES
Optional space separated list of branches to combine. If this is not specified the script will use branches for every pull request opened by dependabot.
-h, --help
Display this message.
Create a new pull request combining all open pull requests created by dependabot:
gh merge-dependabot
Create a new pull request combining remote branches branch-1
, branch-2
, and branch-3
:
gh merge-dependabot branch-1 branch-2 branch-3