Detailed Description
Introduce a new branch related property of name prevent-increment-when-branch-merged. This property can be used like the prevent-increment-of-merged-branch property to control the behavior of how to increment the version when a branch has been merged.
The configuration could be look like as following:
prevent-increment:
of-merged-branch: false
when-branch-merged: false # new branch related property
when-current-commit-tagged: true
Context
Following business statements applying:
- The increment of the branch merged to will be ignored, regardless of whether the merged branch has a version number or not, when
prevent-increment-of-merged-branch is set to true on the target branch
- The increment of the merged branch will be ignored when
prevent-increment-when-branch-merged is set to true on the source branch