Repository navigation
ci: merge Dependabot patch bumps natively instead of via the Claude caller - #344
Conversation
…aller dependabot-auto-merge.yml was a dispatch-only caller of the Claude merger in docdyhr/.github, which the org retires together with its template. It is now the native workflow httpcheck and malwarespotter use: a Dependabot patch bump is approved and set to auto-merge once the required checks pass. One addition: any PR whose dependency names contain "ruff" is skipped, because CLAUDE.md requires a ruff check --statistics comparison against main before a ruff bump merges, and ruff sits in the dev-tools group that takes patch updates. CLAUDE.md and CHANGELOG.md describe the new policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer's GuideThe PR retires the organization-level Claude Dependabot merger integration and implements a native, event-driven workflow that approves and enables squash auto-merge for Dependabot semver-patch updates after required checks pass, while excluding ruff-related PRs and leaving minor, major, and other merges for manual review. Sequence diagram for native Dependabot patch auto-mergesequenceDiagram
participant Dependabot
participant GitHub
participant Workflow
participant Metadata as DependabotMetadata
participant Checks as RequiredChecks
Dependabot->>GitHub: Open or update pull request
GitHub->>Workflow: pull_request_target
Workflow->>Metadata: fetch-metadata
Metadata-->>Workflow: update-type and dependency-names
alt semver-patch and does not contain ruff
Workflow->>GitHub: gh pr review --approve
Workflow->>GitHub: gh pr merge --auto --squash
GitHub->>Checks: Wait for required checks
Checks-->>GitHub: Checks pass
GitHub-->>Dependabot: Squash merge pull request
else ruff, minor, or major update
Workflow-->>Dependabot: Report skipped PR
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🔒 Security Analysis ReportSecurity Analysis ReportGenerated: Wed Oct 21 10:38:17 UTC 2026 Bandit Security ScanPip-Audit Results |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
dependabot-auto-merge.ymlwas a dispatch-only caller of the Claude merger indocdyhr/.github. The org is retiring those callers together with their templates. This PR replaces it with the native patch auto-merge that httpcheck and malwarespotter use, so a Dependabot patch bump merges on its own once the required checks pass. Until now it needed someone to dispatch the Claude merger withmerge_mode=live.Changes
.github/workflows/dependabot-auto-merge.ymlis now the native workflow. Onpull_request_target, when the actor is Dependabot, it readsdependabot/fetch-metadataand approves a semver-patch PR and runsgh pr merge --auto --squashon it. It never checks out PR code, and PR values reach the shell only throughenv:.ruffis skipped.CLAUDE.mdrequires aruff check --statisticscomparison againstmainbefore a ruff bump merges, and ruff sits in thedev-toolsgroup, which takes patch updates. Without the exclusion, a patch-only dev-tools PR would merge without that check.CLAUDE.md: patch bumps now merge natively, except anything touchingruff. Everything else stays user-run.CHANGELOG.md: an Unreleased "Changed" entry.Verification
actionlint: clean. The YAML parses.mainruleset requires status checks, so--autowaits for them. "Allow auto-merge" is on for the repo.pytest --maxfail=1000: 2841 passed, 16 skipped.ANTHROPIC_API_KEYhas no other user in this repo, so the secret can be deleted after merge.pull_request_targetruns the base branch's copy, so the first Dependabot patch PR after merge is the first real run.🤖 Generated with Claude Code
Summary by Sourcery
Enable native automatic merging for eligible Dependabot patch updates while retaining manual review for ruff, minor, and major updates.
New Features:
Enhancements:
Documentation: