Modernize Dependabot auto-merge#607
Open
koppor wants to merge 1 commit into
Open
Conversation
Replace the third-party pascalgn/automerge-action, which merges based on
GitHub's mergeable state and does not reliably wait for status checks, with
GitHub's native auto-merge:
- `gh pr merge --auto` enables auto-merge, so every Dependabot PR merges only
once the required `backend` and `frontend` checks pass (branch protection
on main). Safety comes from the required checks rather than from the merge
tooling, and a bump that breaks the build is held back automatically.
- A least-privilege `permissions:` block replaces the broad default token.
Note: this requires the repository setting "Allow auto-merge" (Settings ->
General) to be enabled, otherwise `gh pr merge --auto` errors. It also makes
the open Dependabot PR bumping pascalgn/automerge-action obsolete.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖
CI / infrastructure. Modernizes the Dependabot auto-merge workflow.
automerge.ymluses the third-partypascalgn/automerge-action@v0.8.4. That action merges based on GitHub's mergeable state and does not reliably wait for status checks, so it both predates and races the required-checks model. With branch protection now requiringbackendandfrontend, the old action just errors on PRs it cannot merge (e.g. thecore-js 2→3bump run shows afailure).Replaces it with GitHub's native auto-merge:
gh pr merge --auto --squashenables auto-merge on each Dependabot PR. GitHub then merges it only after the requiredbackendandfrontendchecks pass (branch protection onmain). All update types are auto-merged — a bump that breaks the build simply never satisfies the checks and stays open.permissions:block (contents: write,pull-requests: write) replaces the broad default token.check_suite/statustriggers the old approach needed).Other information:
gh pr merge --autoerrors. I could not toggle this myself (shared-repo setting). CLI equivalent:gh api -X PATCH repos/JabRef/cloudref -F allow_auto_merge=true.pascalgn/automerge-actionto 0.16.4) obsolete; it can be closed.