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, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events