Skip to content

ci: fall back to a direct merge when auto-merge is refused - #303

Merged
markuslf merged 1 commit into
mainfrom
fix/dependabot-auto-merge-fallback
Aug 3, 2026
Merged

ci: fall back to a direct merge when auto-merge is refused#303
markuslf merged 1 commit into
mainfrom
fix/dependabot-auto-merge-fallback

Conversation

@markuslf

@markuslf markuslf commented Aug 3, 2026

Copy link
Copy Markdown
Member

GitHub refuses enablePullRequestAutoMerge while a pull request sits in clean or unstable state. A freshly opened Dependabot pull request lands there as soon as the required checks pass while the optional ones are still running, so gh pr merge --auto exits non-zero, the auto-merge job turns red, and that red check keeps the pull request unstable for good. The job now falls back to a direct merge, which branch protection still gates server-side.

@markuslf
markuslf merged commit 424af0a into main Aug 3, 2026
10 checks passed
@markuslf
markuslf deleted the fix/dependabot-auto-merge-fallback branch August 3, 2026 09:06
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