Enable auto-merge in setup so dependabot PRs can land#32
Merged
Conversation
The centrally-synced dependabot_automation workflow runs
`gh pr merge --auto --squash` on dependabot PRs, but on a fresh repo
this fails with:
GraphQL: Auto merge is not allowed for this repository
(enablePullRequestAutoMerge)
GitHub's repo-level "Allow auto-merge" setting is off by default.
Adding --enable-auto-merge to the existing gh repo edit call turns it
on as part of setup, so the central automation works end-to-end on
new repos without manual toggling.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
--enable-auto-mergeto thegh repo editcall insetup.js.dependabot_automationworkflow fails withAuto merge is not allowed for this repository (enablePullRequestAutoMerge)on every fresh template repo, because GitHub's repo-level "Allow auto-merge" setting is off by default.Why
The central automation does
gh pr merge --auto --squash, which requires repo-level auto-merge enabled. Without this fix, every new repo from the template needs manual toggling before dependabot PRs can land — encountered on a fresh repo created from this template today.Test plan
gh repo view --jsonshows auto-merge allowed🤖 Generated with Claude Code