Repository navigation
ci: add reusable Dependabot auto-merge workflow - #132
Conversation
Approves and merges a Dependabot patch or minor update once every check run and commit status on its exact head commit has passed. Repositories in appwrite and appwrite-labs call it from a workflow_run trigger, so one copy replaces the five drifting variants they carry today. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🟢 Tier S · Ready to merge
Adds a reusable workflow that approves and merges eligible Dependabot patch and minor pull requests after checks pass on the exact head SHA. It identifies updates from Dependabot commit metadata, waits for workflow runs, check runs, and commit statuses, then approves and merges with a head-SHA match. Latest changes: The latest commits add polling of workflow runs so queued runs are included while waiting for checks on the pull-request SHA.
📂 Walkthrough · 1
✅ Fixed since the last review · 1
Reviewed the commits since |
A workflow that is queued but has not created a check run yet was invisible to the gate. List the commit's workflow runs as well, which appear as soon as they queue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Status 2026-10-28 14:00 UTC
|
|
Update: merged appwrite#15061, sidecar-for-runtime-build#6, sidecar-for-runtime-init#8, sidecar-for-wal-sync#15, templates#475, builtwith#76. That's 24 of 26. Still open: sidecar-for-database-metrics#39 and sidecar-for-sql-api#48 (the Mongo/6.19 |
|
Done: all 26 callers merged. database-metrics#39 and sql-api#48 were admin-merged past the Mongo/6.19 Verified end to end: og-image#10, a minor group bump, was approved and merged by github-actions at 14:21 UTC. Before approvals were on, the same run reached the approve step and got a 422, as expected. Watch next:
|
26 repos in appwrite and appwrite-labs carry their own
dependabot-auto-merge.yml, in five versions. None of them is merging anything: 0 Dependabot PRs merged by a bot in the last 30 days across all 26, with 266 open.This adds one reusable workflow that each repo calls from a
workflow_run: completedtrigger. Becauseworkflow_runruns the default branch's copy, a PR can't change the code that decides to approve it.For a Dependabot PR at an exact head SHA it:
--match-head-commit.It merges directly instead of through GitHub auto-merge, because the checks have already passed by then. That means repos don't need Allow auto-merge or required status checks.
The callers come in follow-up PRs, one per repo, pinned to this commit.
🤖 Generated with Claude Code