It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can Stash (Bitbucket Server) have custom pull request rules per branch.

I have a project in Stash I MEAN Bitbucket Server. 

We currently require 1 approval for any pull request to be merged.

I want to configure it so that pull requests against the master branch require 2 approvals to be merged.

Is this kind of special custom-approval-rule-per-branch possible, either with a plug in or out of the box?

 

 

3 answers

1 accepted

0 votes
Answer accepted

Hi @Noah Zucker, 

That isn't available out of the box, but you have a couple of options. You could raise an issue in the BSERV project on https://jira.atlassian.com for consideration by our product management team. Alternatively, merge checks are actually pluggable, so if you have the inclination (and some basic Java skills), you could actually implement it yourself. There's a great tutorial here if you're interested: https://developer.atlassian.com/bitbucket/server/docs/latest/tutorials-and-examples/controlling-when-pull-requests-can-be-merged.html

Hope this helps!

cheers,

Tim

AFAIK a pull request can be configured only on a repo basis in STASH/Bitbucket.

 

i dont think there is a plugin available for customizing pull request for each branch,

The Workzone plugin will allow you to set mandatory reviewers on a branch, but I don't know of a way to set a different minimum number of reviewers on a per branch basis.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

401 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you