Bypass actor on ruleset is ignored when PR needs to enter the merge queue #203926
Replies: 2 comments
💬 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. ⭐ |
Here is a direct response addressing the technical behavior of ruleset bypasses with merge queues: This behavior occurs due to how Auto-merge interacts with Rulesets when Merge Queue is enabled: Why This Happens
Workarounds
|
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
We have a GitHub App that creates PRs, and we want this app to automerge its own PRs without needing a human review. I added the app as a bypass actor to the ruleset that enforces a review, and this works just fine until merge-queue is enabled.
When the merge queue is enabled, PRs created by the app are stuck in the "Awaiting approval" state. Is it expected that bypass actors are just never honoured for merge queue entry?
There is a similar report here, but unfortunately it is not answered: https://github.com/orgs/community/discussions/110908#discussioncomment-9688029
And here is another one:
https://github.com/orgs/community/discussions/45208
Setup
We have these rulesets on the default branch:
The app itself enables automerge on its PRs.
Expected behavior
Since the app can bypass the review ruleset, we expected GitHub to add the PR to the merge queue as soon as checks are green, without waiting for an approval.
Actual behaviour
The PR just sits there with auto-merge enabled but never gets added to the queue:
Checks are green, automerge is enabled.
All reactions