ci: auto-merge Dependabot PRs once all CI passes#151
Conversation
Adds a Dependabot Automerge workflow so dependency bumps land automatically when the full CI suite is green, matching the policy used across other Etherpad repos. Triggers on workflow_run completion of every CI workflow (Node, Lint PHP, Lint info.xml, PHPUnit, Psalm) and uses pascalgn/automerge-action, which re-checks the PR's full combined status before squash-merging. This means it waits for all CI to pass and stays self-contained -- no branch protection / required-checks configuration needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
PR Summary by QodoCI: auto-merge Dependabot PRs after full CI suite passes Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Reruns block automerge
|
As discussed in #148 — enables our standard policy of auto-merging Dependabot PRs once CI is green, now that this repo has sufficient test coverage (vitest + PHPUnit + Psalm + lint).
What it does
Adds
.github/workflows/dependabot-automerge.yml:workflow_runcompletion of each CI workflow (Node, Lint PHP, Lint info.xml, PHPUnit, Psalm).dependabot[bot]-authored PRs with a successful run.pascalgn/automerge-action(SHA-pinned), which re-checks the PR's full combined status before squash-merging — so it waits for all CI workflows to pass, not just the one that triggered it.Why this shape
The repo has no branch protection / required status checks, so GitHub-native
gh pr merge --autowould merge immediately rather than waiting for CI. Theworkflow_run+ automerge-action approach is self-contained and genuinely waits for every check to go green. Concurrency is collapsed per branch so the several CI completions don't spawn parallel merge attempts.No semver filtering — CI gates breakage, consistent with the rest of the Etherpad ecosystem.
🤖 Generated with Claude Code