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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.
Learn moreOnline 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.