We have Bitbucket Cloud. My question is how to block the opportunity to "push" but save "create and merge pull requests"?
Groups has the "Write" permission,
Hi @Vsevolod Romanchenko and welcome to the community!
If you are an admin of a Bitbucket Cloud repo, you can do the following:
If you set Write access to Only specific people or groups have write access and then leave the field below it empty, no one will be able to push to the branch or branches with this restriction.
In the Select branches option, you need to specify the branch name or pattern for which the restriction will apply.
You can see more details on branch restrictions here:
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
I have already do this. The main problem: what if I will have 150 repos, I need to go into each repo settings ? Maybe, in the future BitBucket Cloud will have some automation rules, like in Jira Cloud...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Our development team has been working on a feature that will allow admins to set branch permissions on a project (and then these will apply to all repos of a certain project). When this is implemented, we are going to update the public feature request we have in our issue tracker:
You can also add yourself as a watcher to that feature request (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
In the meantime, until this feature is implemented, another option would be to write a script that uses our APIs in order to set the branch restrictions.
The following API endpoint gets all repos in a workspace:
This API endpoint creates a branch restriction for a repository:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yolu can arrange that by Branch Permissions. There is an option “changes without PR”
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.