Skip to content

Enable auto-merge in setup so dependabot PRs can land#32

Merged
domdomegg merged 1 commit into
masterfrom
enable-auto-merge
May 2, 2026
Merged

Enable auto-merge in setup so dependabot PRs can land#32
domdomegg merged 1 commit into
masterfrom
enable-auto-merge

Conversation

@domdomegg

Copy link
Copy Markdown
Owner

Summary

  • Add --enable-auto-merge to the gh repo edit call in setup.js.
  • Without this, the centrally-synced dependabot_automation workflow fails with Auto 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

  • Create a fresh repo from the template after this lands and confirm gh repo view --json shows auto-merge allowed
  • Confirm a dependabot PR auto-merges once CI is green

🤖 Generated with Claude Code

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>
@domdomegg
domdomegg merged commit 89f4e01 into master May 2, 2026
4 checks passed
@domdomegg
domdomegg deleted the enable-auto-merge branch May 2, 2026 19:46
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.

1 participant