Skip to content

ci: auto-merge dependabot patch bumps for dev and transitive deps (#4915) - #4916

Open
NoopDog wants to merge 1 commit into
mainfrom
dave/4915-dependabot-auto-merge
Open

ci: auto-merge dependabot patch bumps for dev and transitive deps (#4915)#4916
NoopDog wants to merge 1 commit into
mainfrom
dave/4915-dependabot-auto-merge

Conversation

@NoopDog

@NoopDog NoopDog commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Closes #4915.

Adds a dependabot-auto-merge workflow. For PRs authored by dependabot[bot], it reads update metadata via dependabot/fetch-metadata (SHA-pinned, matching this repo's convention) and, only when the bump is patch-level (version-update:semver-patch) and the dependency is dev-only (direct:development) or transitive (indirect), approves the PR and enables GitHub auto-merge with squash.

Everything else — runtime (direct:production) dependencies and any minor/major bump — is untouched and stays on manual review.

Rationale: these PRs (e.g. #4904) are lockfile-only, never ship to production, and cannot change any API the app codes against; CI is the only meaningful gate.

Accompanying repo settings (admin, done outside this PR)

  • Allow auto-merge enabled in repo settings (was off; gh pr merge --auto fails without it).
  • build added as a required status check on main (there were previously none, so auto-merge would have merged before CI completed). main already required 1 approving review; the workflow's approval satisfies that for matching Dependabot PRs.

Known caveat

Merges completed via the workflow's GITHUB_TOKEN do not trigger push-event workflows, so release-please will not run on these merges. Nothing is lost — it picks up the chore(deps) commits on the next push to main (or via workflow_dispatch).

🤖 Generated with Claude Code

)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: auto-merge Dependabot patch bumps for dev and transitive dependencies

1 participant