The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory review for Pull Request

Pankaj Malhotra
July 25, 2019

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Julius Davies _GitBoost_com_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 27, 2019

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.

 

default-reviewers.png

 

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.

TAGS
AUG Leaders

Atlassian Community Events