How to enforce Trunk-based branching strategy in Bitbucket?

220 Views Asked by At

As a code owner I'd like to enforce trunk-based branching strategy in my Bitbucket repository.

I tried using Branch Permissions, but once I set change prevention on all branches, I cannot exclude 'trunk' from it. I tried to set it in Workflow>Branches section, but seems there's no easy way to forbid pushing branches with names different than 'trunk' in this case.

How do I configure it?

0

There are 0 best solutions below