Home > front end >  how to prevent merge of unapproved pull requests in bitbucket
how to prevent merge of unapproved pull requests in bitbucket

Time:07-29

We are trying to improve our merge process by protecting specific branches from merge of any unapproved pull request.

The developer create a pull request and he/she can´t merge it until it is at least from one reviewers approved.

How to protect specific branches from such merges using Bitbucket api ? Or is there another way to achieve that goal ?

Thanks a lot in advanced

CodePudding user response:

Go to "Repository settings" (admin rights on the repo needed), then in "Pull requests", click on "Default reviewers"

enter image description here

Here you can set how many reviewers must give their approval for a pull request to be mergeable.

enter image description here

See the Atlassian help page about it Bitbucket merge conditions

  • Related