Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HHobeck opened this issue Feb 22, 2024 · 1 comment · Fixed by #3924
Labels
Milestone

Comments

@HHobeck
Copy link
Contributor

HHobeck commented Feb 22, 2024

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
@HHobeck HHobeck added this to the 6.x milestone Feb 22, 2024
@HHobeck HHobeck changed the title [Feature] The increment of the target branch will be ignored when prevent-increment is set to true on the source branch [Feature] The increment of the branch will be ignored when prevent-increment is set to true on the branch Feb 23, 2024
@arturcic arturcic modified the milestones: 6.x, 6.0.0-beta.6 Mar 9, 2024
@arturcic
Copy link
Member

arturcic commented Mar 9, 2024

🎉 This issue has been resolved in version 6.0.0-beta.6 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants