auto-merge doesn't work with rulesets #162623
Replies: 11 comments 17 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Hi @ReenigneArcher, You're absolutely right—what you're experiencing is a known limitation with the current implementation of branch rulesets in GitHub. As of now, auto-merge is not yet fully compatible with the new branch rulesets, especially when certain conditions (like required status checks or required approvals) are applied through rulesets instead of the classic branch protection UI. Auto-merge relies on specific signals from the branch protection settings to determine whether a pull request is eligible. Some of these signals are not yet surfaced correctly when using the new rulesets system. GitHub has acknowledged that feature parity between classic protections and rulesets is still in progress. There is currently no public ETA on full compatibility, but this issue has been reported by many users and is on GitHub’s radar. You Can Try These Workarounds:
If this is blocking critical workflows, I recommend reaching out via GitHub Support to escalate the issue and get notified when a fix is rolled out. |
💡 The WorkaroundIf you want to use RuleSets and auto-merge. Create an empty branch protection rule (the older alternative to the RuleSet), and the auto-merge will start working again, while the RuleSet is still fully functional. |
|
bump |
|
+1, workaround proposed by @AlexanderBartash is still the only way to get auto-merge working fine with rulesets |
|
Thank you @AlexanderBartash for the workaround! Btw. we opened a support ticket, but there is still no ETA for a fix: |
|
I also experienced this issue in my setups. While auto-merge works generally for the repository, I get some PRs every day that won't merge, even after hours of being eligible and auto-merge being activated. |
|
Hello, I am experiencing the same problem. We've defined some org based rulesets, and even though the individual repository Auto-merge checkboxes have been ticked, there's no automerging happening. This is affecting multiple projects. Would be great if this can be prioritised. |
|
I am also facing this issue, how can I enable AutoMerge on PRs? |
|
+1, hitting this too — and can confirm the root cause with a clean test. We have a repository ruleset (require_code_owner_review + required_approving_review_count) with a GitHub App added as a bypass_actors entry (Integration type, tried both bypass_mode: always and pull_request). The app auto-approves and calls |
|
Follow-up with concrete repro data, in case it helps someone on the GitHub side pick this up — this is fully reproducible on our end: Setup: Repository ruleset, Test A — PR with all checks green, approved by the bypass-listed App, auto-merge enabled via Test B — same PR conditions, but instead of No special override flag, no admin privileges beyond being a listed bypass actor. Result: merged instantly, no error. So the bypass grant itself is real and correctly enforced by the synchronous merge endpoint — it's specifically the async/deferred auto-merge completion path that never re-checks Workaround for anyone stuck on this: have your automation call the merge endpoint directly (Test B) instead of relying on |





Uh oh!
There was an error while loading. Please reload this page.
Why are you starting this discussion?
Bug
What GitHub Actions topic or product is this about?
Workflow Deployment
Discussion Details
I recently migrated from classic branch protection rules to branch rulesets (on June 11 2025), and noticed that the auto-merge functionality does not work since I did this.
I migrated dozens of repositories and the behavior is exactly the same between all of them.
As you can see in the screenshot above, auto-merge is enabled and everything has passed it's checks but the merge never occurs. I have disable auto-merge, and then do the merge manually to get it merged.
Is this a known bug, and is anyone working on a correction?
All reactions