HiveBrain v1.2.0
Get Started
← Back to all entries
patterngitMinor

Bitbucket: Is there any option to restrict deletion of release branch only after it is merged to master

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
afteranybranchbitbucketoptionmasterdeletionreleasemergedrestrict

Problem

We are using GitFlow workflow. After merging the release/ branch to master, we need to close the branch. For this task, we need to provide deletion access to pull request merger but in this case, merger can delete the release/ branch any time.

Do we have any option to restrict the branch closer only after it is merged to some other branch ?

Solution

You should not delete the branches at all. Just rename them to stale!

but

As of Bitbucket 7.3 there is an option to delete branches automatically after merge. Just prevent deletion at all, set the other option and you are done.

Context

StackExchange DevOps Q#9739, answer score: 1

Revisions (0)

No revisions yet.