-
Notifications
You must be signed in to change notification settings - Fork 652
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
feat: Incrementing patch instead minor #2691
Comments
Its already configured, the settings are on mode: Mainline
major-version-bump-message: '\BREAKING CHANGE:\s?'
minor-version-bump-message: '\feat:\s?'
patch-version-bump-message: '\fix:\s?'
commit-message-incrementing: Enabled
branches:
master:
regex: ^latest$|^master$|^main$|^release$
pull-request:
tag: pr
the keyword |
That is curious. What you've described above is that GitVersion/src/GitVersion.Core.Tests/IntegrationTests/VersionBumpingScenarios.cs Lines 51 to 94 in 666bd37
|
@asbjornu in this case, isn't Should the |
Sorry @asbjornu, i mean I'm reproduce the bug again, i will return soon. |
@gep13, good catch! Yeah, the initial backslash looks like an error. Why did you put it there, @allanalves23? Please use the conventional commit regexes we have documented: mode: MainLine # Only add this if you want every version to be created automatically on your main branch.
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
minor-version-bump-message: "^(feat)(\\([\\w\\s-]*\\))?:"
patch-version-bump-message: "^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?:" |
@asbjornu this works perfectly. My GitVersion.yml
|
@allanalves23, awesome! 👍🏼 |
🎉 This issue has been resolved in version 5.9.0 🎉 Your GitReleaseManager bot 📦🚀 |
When writing commit messages to feat changes, only minor version is incremented.
Ex: On version 1.0.0
Create a commit with message: "feat: Some feature."
Expected Behavior
The version should be 1.1.0
Actual Behavior
The version is 1.0.1
Steps to Reproduce
1 - Clone the repo: https://github.com/allanalves23/gitversion-minor-bug-fixture
2 - Download command line tool: https://gitversion.net/docs/usage/cli/installation
3 - On master branch create any change and create one commit: "feat: should be 1.1.0"
4 - Check version with command
dotnet-gitversion
Output of
dotnet-gitversion
beforefeat
commit:Output of
dotnet-gitversion
afterfeat
commit:Screenshot after
feat
commit:GitVersion.yml
are on project below.The text was updated successfully, but these errors were encountered: