Skip to content
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

Add configuration option to disable branch name version calculation #3877

Closed
nitewulf opened this issue Jan 19, 2024 · 1 comment · Fixed by #3883
Closed

Add configuration option to disable branch name version calculation #3877

nitewulf opened this issue Jan 19, 2024 · 1 comment · Fixed by #3883
Labels
Milestone

Comments

@nitewulf
Copy link

We are starting to create releases based off actual release branches. The desire is to name them after the sprint they are finished in. 24.01 for example. Using that in the branch name causes GitVersion to use it as a version number as documented here:

https://gitversion.net/docs/reference/version-increments

I'd simply like a way to disable that feature.

Context

Adding some alpha prefix works great, unless you or someone else on your team forgets. It would just be nice to have that feature as optional.

Possible Implementation

Add an option to the config file:

merge-message-formats: {}
branches:
release:
regex: ^(releases?|releases?[/-])
mode: ContinuousDelivery
tag: ''
increment: Patch
prevent-increment-of-version-based-on-name: true

@HHobeck HHobeck added this to the 6.x milestone Jan 28, 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
Development

Successfully merging a pull request may close this issue.

3 participants