Add Dependabot auto-merge workflow#23
Merged
Merged
Conversation
Automatically merges Dependabot PRs once CI passes. Requires auto-merge to be enabled in repository Settings → General, and a branch protection rule on main requiring the CI check to pass so the merge waits for a successful image build. https://claude.ai/code/session_01EZ5g73mHD6zFsUuvJtMCdw
Simpler approach: auto-merge: true in dependabot.yml requests auto-merge on each Dependabot PR directly, removing the need for a separate workflow. Branch protection on main still gates the merge on CI passing. https://claude.ai/code/session_01EZ5g73mHD6zFsUuvJtMCdw
auto-merge is not a valid dependabot.yml key; the workflow approach is the correct mechanism for automatically merging Dependabot PRs. Removed dependabot/fetch-metadata since it isn't needed for a blanket auto-merge of all Dependabot PRs. https://claude.ai/code/session_01EZ5g73mHD6zFsUuvJtMCdw
A skipped step inside a running job doesn't create a separate check entry in the PR UI, unlike a skipped job. This keeps the checks list clean for non-Dependabot PRs while still enabling auto-merge when Dependabot's CI passes. https://claude.ai/code/session_01EZ5g73mHD6zFsUuvJtMCdw
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.
Adds a workflow that automatically merges Dependabot PRs once CI passes.
How it works
dependabot[bot]dependabot/fetch-metadatato identify the PRgh pr merge --autoso the merge only happens after all required status checks passPrerequisites (one-time setup)
mainmust require theci / dockercheck to pass — once this PR's CI run completes, the check name will be available to add in the branch protection settingshttps://claude.ai/code/session_01EZ5g73mHD6zFsUuvJtMCdw
Generated by Claude Code