How can I restrict allowed PR reviewers to members of a particular group? Edited

I have a Bitbucket Server (5.5.1) instance bound to my organization's Active Directory instance. We have a pull-request-based workflow. PRs are required to have at least one approval and passing tests before merging. However, we employ both FTEs and interns, and we want only FTEs to be able to approve PRs. FTEs are members of the "unix-staff" group in the AD while interns are members of the "unix-students" group. Is there some way to prevent PRs from being merged until at least one member of the "unix-staff" group has approved it? Or can I do something similar that achieves the same goal, like restricting PR reviewers to members of a particular group?

I do see the "default reviewers" feature, but this doesn't quite meet my goals: it's a handwritten list of users, whereas I want to be able to say "any current members of the unix-staff group", so that I don't need to modify this list every time an FTE joins or leaves my group.

1 answer

1 vote
Mikael Sandberg Community Champion Dec 20, 2017

In order to control it by groups you need an app, Workzone and ScriptRunner allows you to do that.

Thanks, these are both paid plugins though and I am not allowed to authorize funds for Bitbucket :( Ah well I guess I might have to live with a hardcoded list of FTEs.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

2,368 views 9 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you