Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

0 votes
Julius Davies _bit-booster_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 Leaders.
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events