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

Is there a way to configure Required Approvers for a Pull Request?

Cole Orton July 18, 2022

Is there a way to configure Required Approvers for a Pull Request?

For example, our team wants us to have at least one person from the Required Approvers list approve a Pull Request before it can be merged. 

1 answer

1 accepted

2 votes
Answer accepted
Sean Manwarring _Izymes_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 18, 2022

Hi Cole!

Here are a few solutions;

1. In your Bitbucket Repository settings, you can create "Default Reviewers" on the left.

Then under "Branch Permissions" you can select "Check for at least N approval from  default reviewers".

This will get you close, but not quite to the result you are after.

Screen Shot 2022-07-19 at 11.40.55 am.png

 

2. You can sign up for bitbucket premium to block merge if N approvals from default reviewers have not been reached. 

- You will need to change every bitbucket branch setting if a default reviewer leaves or you want to add a new one. 

 

3. Our product Workzone for Bitbucket will offer all of the above + more:

- Workzone will allow you to introduce reviewer groups, group quota and merge-control. 

- You can set up a default reviewer group, so you only need to change the group members and Workzone will apply that automatically.

 

Happy coding!

Sean 

Technical Support at Izymes

Cole Orton July 20, 2022

Hi Sean, 

Thanks for your response! 

For Options 1 and 2 I don't believe our version of BitBucket (Atlassian Bitbucket v7.17.5) supports those configurations. 

In regards to Option 3, we're using Workzone 7.5.1. I was able to successfully configure Mandatory Users. However, the Pull Request Merge Check is all of those users to Approve. Is there a way where we can allow a specific number or ratio of those in the Mandatory Users list to Approve? 

Thanks, Cole

Sean Manwarring _Izymes_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 20, 2022

Hi Cole, 

If you head to your repository settings > "Workzone" (under "Add-Ons") > "Merge" tab. 

You can then edit the existing merge configuration you have set up or create one. 

This will allow you to create a Boolean Expression based merge condition under the "Advanced" tab as seen in the screenshot below. This should solve your dilemma.

It may also help to refer to our new documentation space here.

Let me know how that goes & if we can help with anything else.

Best, Sean

Screen Shot 2022-07-21 at 2.08.50 pm.png

Like # people like this
Cole Orton July 21, 2022

That worked! 

Thanks for your help on this. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events