You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Have a common repo which is being used by 5k+ users. Is there a way to block users from creating new branch? Currently whats happening is - users either fork the repo OR create a new branch and raise a PR. When new branch is created and PR is raised by users, while doing PR merge we do get an checkbox to select "delete branch" after PR merge however forgetting to select the option and PR's are merged.
This is creating new branch every-time on the repo when PR is merged without selecting the "delete branch" option. Is there a better way to follow or restrict users from creating new branch?
please advise.
Hi @Surrender Mohan and welcome to the community,
I don't think that you can prevent user from branch creation. In bitbucket there is branch restrictions https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/
E.g. you add a branch and a branch pattern and select one of the available restrictions and then you add a group exception (for those who you want to actually be able to create branches).
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.