[ci] Auto-merge workerd Dependabot updates when CI is green#13852
Conversation
workerd ships a release every weekday, producing a steady stream of mechanical Dependabot PRs in the workerd-and-workers-types group. These PRs require no human review when CI passes, so enable GitHub auto-merge for them. Required status checks remain the gate — a failing build still parks the PR for a human.
|
|
SHA pin matches. Let me review the workflow one more time carefully:
The workflow is clean, follows existing patterns in the repo, and the security model is sound (double-gated, no checkout, SHA-pinned action). LGTM |
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
Add a verification step that ensures the PR contains exactly the two expected commits (signed Dependabot commit + changeset commit from miniflare-dependabot-versioning-prs.yml) and only touches the expected fileset. If a maintainer pushes a follow-up commit, verification fails and any previously-enabled auto-merge is cancelled.
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com> Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
workerd ships a release every weekday, producing a steady stream of mechanical Dependabot PRs in the
workerd-and-workers-typesgroup (e.g. #13841). When CI is green these PRs require no human review, so this enables GitHub auto-merge for them. Required status checks remain the gate — a failing build still parks the PR for a human.Implementation notes:
pull_request_targetto match the existingminiflare-dependabot-versioning-prs.ymlandc3-dependabot-versioning-prs.ymlworkflows.github.event.pull_request.user.login == 'dependabot[bot]'anddependency-group == 'workerd-and-workers-types', so it never auto-merges anything else.actions/checkoutstep — PR-controlled code never touches the elevated token.dependabot/fetch-metadatais SHA-pinned (passespnpm check:workflows).Prerequisites for this to take effect (require a repo admin):
mainshould already require the relevant status checks; this PR does not change them.The existing
miniflare-dependabot-versioning-prs.ymlalready auto-generates the changeset on these PRs, so once auto-merge is enabled the loop should be fully closed.main. Behavior is gated by two conditions (actoranddependency-group) and any failure mode degrades to "auto-merge not enabled" — no destructive path.