Is there a way I can enforce, Pull Request (PR) cannot be merged unless a user who is required for this PR review hasn't approved. Irrespective of how many users has reviewed this PR.
Thanks,
Pankaj
If you're on Bitbucket Cloud (bitbucket.org) then this feature is not quite 100% available, although combining "Merge Checks" and "Default Reviewers" in Bitbucket Cloud does come pretty close.
If you're on Bitbucket Server or Bitbucket Data Center before version 5.1.x (released in June 2017) you will need to upgrade.
If you're on Bitbucket Server or Bitbucket Data Center (version 5.1.x or newer) here is how to do this:
Go to "Repository Settings" --> "Default Reviewers" --> "Add default reviewers".
Put in the username of the person you want to be a default reviewer and set "Minimum Approvals" to 1. That person will now be a mandatory positive review before pull-requests can merge.
Atlassian did a great job implementing this feature in an intuitive way - for example if you set "Approvals Required" to 2, and put 3 names under "Default reviewers", then any 2 of those 3 reviewers can provide positive votes so that the PR can merge.
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.