Hello,
I was looking to secure a branch, by not only blocking people to merge to the branch but also from the branch.
So if the origin of the pull request is production, only a group of people can merge that pull request.
Many thanks.
Bitbucket built in branch permissions are only based on target branch.
However, Flowie, which is a Bitbucket app is capable of restricting based on other aspects, including the source and/or target branch. You can use the merge plugin with conditions.
Agree with the comment by @Saxea _Flowie_ - there are a few more apps that support your requirement:
Please let me know if I can help you any further with your setup.
Cheers, Ulrich
First thing Tanks for your answer.
Im working with Bitbucket Cloud, wich of those are supported for it? Also, does any of this plugins block merging in local, and then pushing the changes?
Pablo.
Ive tried tio use flowi, but i cant get it to work in my test repository, how would the flowie settings would be for this merge checks?
Also, does it block merging in local?
Hi @Pablo Hernando Izquierdo
To block locally you need to use git hooks. Flowie (and any other plugins/add) only blocks remote/Bitbucket.
You would need to use the condition. Something like this:
import {configure} from "flowie.app"import {merge} from "flowie.app/plugins"import {target, source} from "flowie.app/conditions"configure({ plugins: [ merge([ source("production").and(target("master")), { allow: ["Team leaders group"] },]),],})
I suggest you reach out on the support channels of the website(email or chat) which is easier for us to help you, as we probably need more details for a complete config.
It looks like you're new here. Sign in or register to get started.