Skip to content

[Feature] The increment of the branch will be ignored when prevent-increment is set to true on the branch #3922

@HHobeck

Description

@HHobeck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions