ci: auto-merge Dependabot dev-deps minor/patch bumps#55
Merged
Conversation
PR #38 sat for 6 days before Dependabot itself rebased it as PR #54 (the noise that triggered this fix). Dev-only @types/node + typescript minor/patch bumps across 17 services don't need human review every week — they need to merge themselves when CI is green. Scope (deliberately narrow): - fires ONLY on PRs from dependabot[bot] (verified via two checks: github.actor + pull_request.user.login) - auto-merges ONLY when ALL of: (a) dependency-type = direct:development (dev-deps, not prod) (b) update-type ∈ {semver-minor, semver-patch} (NOT semver-major) (c) all status checks pass (gh pr merge --auto waits) - production deps, major bumps, or CI failures → human review still required Repo settings updated separately via API: - allow_auto_merge: true - delete_branch_on_merge: true Action pin (dependabot/fetch-metadata@d7267f6 = v2.3.0) per OpenSSF Scorecard best-practice: third-party actions pinned to full commit SHA. Refs: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #38 sat for 6 days before Dependabot itself rebased it as PR #54 — the
noise that prompted this fix. Dev-only
@types/node+typescriptminor/patch bumps across 17 MCP services shouldn't need a human merge
every week; they should auto-merge once CI is green.
Scope (deliberately narrow)
Workflow fires ONLY on PRs from
dependabot[bot]and auto-merges ONLY when all of:dependency-type == direct:development(dev-deps only; production still requires human review)update-type ∈ {semver-minor, semver-patch}(semver-major still requires human review)gh pr merge --autowaits for them)Anything outside that envelope (production deps, major version bump, CI failure) falls through to the existing manual-review flow.
Repo settings already enabled (via API)
allow_auto_merge: truedelete_branch_on_merge: trueSecurity posture
pull_request_targetis privileged; the workflow guards with TWO checks (github.actor == 'dependabot[bot]'ANDpull_request.user.login == 'dependabot[bot]') — both must hold, so a fork PR mis-labelled with Dependabot's username can't trick it.dependabot/fetch-metadataaction pinned to full commit SHAd7267f6(v2.3.0) per OpenSSF Scorecard best practice for third-party actions.contents: write+pull-requests: write(minimum forgh pr merge --auto).Test plan
Gregory Shevchenko <g@humanswith.ai>, no Claude co-author per public-repo disciplineallow_auto_merge,delete_branch_on_merge) confirmed enabled via APIFollow-up signal to watch
Next time Dependabot opens a dev-deps PR: it should auto-merge within ~5 minutes of CI green, no human action needed. If it sits open, the workflow's "Skip (not eligible)" log line in Actions will explain why (e.g. major-version bump). Production-deps Dependabot PRs continue to need manual review — that's intentional.
Refs