Repository owner merging own pull requests #150545
Replies: 5 comments 6 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. ⭐ |
It's only for branch protection rules. It's not in rulesets which you are using. Check if there are branch protection rules also created at https://github.com/<username>/<repo>/settings/branches. If there are no branch protection rules, that means you only have rulesets. If there is only one ruleset, and if it's the one shown above, you should be able to merge without approvals if your role is "Repository admin". |
|
What you’re seeing is expected behavior with branch protection rules. When “Require pull request reviews before merging” is enabled, GitHub enforces the same rule for everyone — including repository owners — unless you explicitly configure a bypass. A few options you can consider:
If you’re not seeing bypass options, you may still be using classic branch protection instead of Rulesets — migrating to Rulesets gives more granular exceptions. |
|
There is an issue with this approach though, we have workflows that run only when a PR is approved, and this becomes a check on the ruleset. Because an author cannot approve their own PR, this workflow will never run, the check will never complete thus cannot merge properly without bypassing all protection mechanisms. |







Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Product Feedback
Body
Assuming I am the owner of a repository. I set a rule to require at least one reviewer for pull requests to be approved. As a side effect, this prevents me from merging my own pull requests. It would be natural to be able to add a bypass, an exception, for example: "Owner can merge their own pull requests without a reviewer", or "Count the owner as a reviewer for all pull requests", something like that. Without this, I have to first set required reviewers to 0, merge, then go back and set it to 1 again! This hassle is unnecessary.
All reactions