Hello,
I use Bitbucket Cloud with my team, how is possible to allow creating a branches for members, they have only read permission.
I don't want to give a write permission, because according this site https://confluence.atlassian.com/bitbucketserver/using-project-permissions-776639801.html if you have a write permission you can "Merge pull request" and I don't want members to be able to merge changes to master branch.
They permission should be only clone, pull, push (to non-master branches), create branches.
Thank you
You're looking at the wrong documentation - that's for Bitbucket Server, which is not the same as Bitbucket Cloud. Have a look at https://confluence.atlassian.com/bitbucket/branch-permissions-385912271.html instead; you can use that to control who can push to master or use pull requests to merge to master.
To answer your original question, though: read-only users cannot create branches in the UI, because creating a branch involves writing to the repo.
Ah thanks, so I need to give them write access, but set branch permissions for master branch only to specific members who can merge to master, right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@jredmondThanks for your reply. I'm also facing a scenario like this, where we have:
master branch - where only the admin group can commit or create pull requests
development branch - where the developers can create branches, develop the features and create a pull request to that branch
The problem is, when i grant to developers group access to write ON DEVELOPMENT BRANCH they can also commit directly to MASTER.
Any ideas how to solve this problem?
* We are using teams, inside of that team we have admin and developers,
* We are using bitbucket cloud
Thanks
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.