Bitbucket Cloud seperate merge vs push permissions

Is there any way in Bitbucket Cloud to only allow merge permission on the master branch? 


Basically what I am looking to do is make it possible for developers to submit and merge pull requests, but prevent any unintended pushes to master.


From this article:, as far as I can see I can lock down a branch write access entirely however it doesn't seem to have the granularity to allow merge but not push. From what I can work out I can effectively disable write permissions by using the "Limit Pushes to specific users and groups" and assigning it to an empty group, but this means that no one can merge pull requests.


However this article (for Bitbucket Server):, seems to have the functionality I wanted, but I would prefer to use the cloud version of Bitbucket.

2 answers

0 votes

You are correct. Bitbucket Cloud's branch restrictions regulate write access and are blind to PR merge vs push.

We might add this distinction in the future when pull requests get merge checks, similar to Server, but for now there is no way to force the use of pull requests, unless you restrict master to all but a single "gate keeper" developer who performs all merges.

You could use a plug in to do an auto merge based on some rules using a "service account".

Yes, a Connect Add-On could potentially automate the gate keeper workflow.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

314 views 0 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