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

how to stop user create pull request without reviewer?

adison March 9, 2023

Hi all

My team create repo for new little applications, but the creator sometime forget to add default reviewer in pull request section of repo.

So, my colleagues may forget to add reviewer in pull request.

Is there a setting to hint/stop this situation? Either default reviewer of team/workspace or flag to disable create PR without reviewer are good.

2 answers

1 vote
Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 12, 2023

Hello Adison,

That's a very common scenario that even for small repositories and teams it makes a lot of sense to have a standardised pull request process, including default reviewers and enforcing approvals before the PR can be merged.

We have built an app - Workzone for Bitbucket cloud (free for up to 5 users) - exactly for that. For your use-case you could define default reviewers at workspace or project level, so new repositories would inherit the reviewer configuration. You can also control when a PR is ready to merge by requiring at least 1 or 2 reviewer approvals, and have Workzone auto-merge the pull request, when all conditions are met.

Let us know if you'd like to touch base on how we can help.

Best, Ulrich

// Izymes

Ulrich Kuhnhardt _IzymesCo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
March 12, 2023

Update: I just checked core Bitbucket.org features. You can set default reviewers on project level, however these reviewers are not branch-specific or file/path specific (with Workzone). Hope that helps.

0 votes
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 9, 2023

Hi there!

Unfortunatelly there is no such option. When creating a repo, the creator should think through all aspects, including adding the default reviewer.

That being said, there is an option to notify ther merger of the PR's when no approval has been given by a Default reviewer. So this should then be the trigger to add a Default Reviewer if forgotten.

Disclaimer: Actually blocking the merge requires Bitbucket premium

Got to Branch restrictions (on repo level):
Screenshot 2023-03-10 at 08.09.37.png

Then click Add a branch restriction and there you will see the option I am talking about:

Screenshot 2023-03-10 at 08.09.48.png

Hope this helps!

Jeroen

Suggest an answer

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

Atlassian Community Events