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>
🤖
CI / infrastructure. Modernizes the Dependabot auto-merge workflow.
automerge.yml uses the third-party pascalgn/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 requiring backend and frontend, the old action just errors on PRs it cannot merge (e.g. the core-js 2→3 bump run shows a failure).
Replaces it with GitHub's native auto-merge:
Other information: