Bitbucket Cloud
If I enable branch permissions and merge checks to require 1 approval to allow merging to master the creator of the PR is allowed to approve their own PR and then merge.
If, however, I set the requires approval to 2, then the creator's self approval does not count and requires two different, separate approvals in order to merge.
Is this intentional?
Hello @Michael Brizic,
Thanks for reaching out.
This doesn't sound right, creator's approval should never count. I quickly double checked in my repository and can't reproduce the behaviour you're describing.
Can you link to the pull request where this happened? You might want to raise a support ticket to share the details privately. Can you please also confirm that you have "Prevent a merge with unresolved merge checks" checkbox enabled in the relevant branch permission (and double check that its pattern/branch type matches the one PR was targeted to)?
Let me know what you find.
Cheers,
Daniil
Ok thanks for your reply.
Is it that "Prevent a merge with unresolved merge checks" is required to prevent creator of PR self-approve?
Once I set that it is working now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, that checkbox enforces merge checks. That is, when it's off you'll only see a warning if some merge checks are not fulfilled but it won't stop you from merging. When it's on, merge checks are actually blocking the merge unless they're all resolved.
As for the approval from PR creator (self-approval basically), it never counts. Honestly, I don't know for sure why it's being kept as a feature. I believe it might be useful in some workflow for indicating that the PR is ready for review, for instance if the author finished addressing some feedback they got earlier.
Hope this helps.
Cheers,
Daniil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.