Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Where is the "Prevent changes without a pull request" restriction?

I want to prevent direct commits to specific branches and allow only pull requests. I have created a branch restriction but didn't see any option which allows for this. The documentation shows a "prevent changes without a pull request" checkbox ( ) but I don't see it. This is what is shown in the branch restrictions tab, under Workflow in the Repository Settings page -

Screenshot from 2023-02-15 19-25-07.png

2 answers

1 accepted

1 vote
Answer accepted

The documentation you linked is for the BitBucket Server, a self-hosted BitBucket with more control like the feature you want.

Ah ok, thanks. I didn't notice the "Data Center and Server" part in the breadcrumbs there.

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 17, 2023

Hi @siva,

You can actually achieve what you want by changing the setting in Write access to Only specific people or groups have write access, and then leave the field below it empty:

Screenshot 2023-02-17 at 12.08.28.png

With a setting like this, no one will be able to push commits to the branch(es) with that branch restriction.

You can also limit the users who can merge via pull request with the Only specific people or groups have merge access option, in the Merge access via pull requests section. If you don't want to restrict this, you can of course leave it to Everyone with access to the repository has merge access.

If you have any questions, please feel free to let me know!

Kind regards,

Thank you. I wondered whether this would work but haven't tried it out yet.

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 24, 2023

You are welcome Siva. Please feel free to reach out if you have any other questions!

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events