Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I prevent Bitbucket users from creating a Pull Request

Ash December 14, 2018

I use a complex branching strategy, and rely on users not mucking stuff up by doing things manually, as this can affect everything, including Continuous Delivery.

I need my build server to be responsible for creating PRs based on commits, as the target branch depends on which JIRA issue the source branch corresponds to (issue type, linked issues, etc).

Can I set permissions somewhere to deny users the ability to create PRs?

If not, my entire branching strategy is unachievable using Bitbucket.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 17, 2018

Hi Ash!

Afaik it's not possible to do that, but we have a feature request that might interest you, you can vote for it at BSERV-10517.

Hope that helps!

Ana

Ash December 19, 2018

Hi @Ana Retamal

The feature request you have referred to is for the ability to prevent developers from creating PRs to specific branches. That will not work once you have dynamic branches, as seen by the OP needing to externally communicate to developers which branch to use. This creates room for errors. When you have a complex branching strategy, the only way to make sure PRs are created correctly is to force-automate the process.

The only way to achieve that is to prevent users from manually creating PRs. This would a simple setting in Bitbucket.

I tried to see where I could raise this as a feature request but I couldn’t find the Bitbucket Cloud category, only the server. Could you please advise.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, forge, forge learning path, atlassian learning, cloud app development, forge app development, build forge apps, atlassian certification, developer training, jira app development, confluence app development, automation, ui frameworks

Turn Ideas into Atlassian Apps 📱

From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.

Start Learning
AUG Leaders

Atlassian Community Events