Hi,
We are trying to prevent anybody accidentally pulling master into a release branch. So specifically, we are looking for a way to disable this option.
Now, when we click the release branch, it states something like "28 commits behind "master. Sync now". When we'd accidentally click the sync now button, all commits from master would end up in the release branch, obviously, something we'd never want !
We can't seem to find the setting that disables "syncing with master". We probably overlook the obvious.
Can you kindly tell us how to disable this option for release branches?
Hi @Bas Prins ,
If the user has write access to the branch, it will have the option to sync. So you need to remove write access on branch restrictions. You can limit the users who have access or only allow merge via pull requests. Users would still be able to create a PR 'main -> release' and merge it, but it is a lot less likely to happen by accident.
If you need greater control, you can use Flowie, a Bitbucket addon we provide, which gives you fine control over the workflow and helps enforcing it. Using Flowie you can disable merge for certain conditions. For instance, in your case, a PR with 'main -> release/*' can never be merged.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bas Prins welcome! You might check this thread: https://community.atlassian.com/t5/Bitbucket-questions/How-do-I-prevent-merging-pull-requests-to-master-except-by-a/qaq-p/824230
HTH
Nicolas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's the other way around I am afraid. That prevents pull requests => master.
We want to prevent pulling master into a release branch.
Or am I missing the point here?
Thx
Bas
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.