In Bitbucket, repository administrators can require that all pull requests receive a specific number of approving reviews before someone merges the pull request into a protected branch.
If a collaborator attempts to merge a pull request with pending or rejected reviews into the protected branch, the collaborator will receive an error message.
- Login to Bitbucket
- Select your repository
- Select Repository settings
- Select Branch restrictions
- Add a restriction
- Under Merge settings check Minimum number of approvals and select 2
Updated 3 months ago