-
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
[Bug] tag & increment override not working #2851
Comments
Try changing |
@asbjornu thanks for looking into this! I actually tried playing around with different modes but the behavior didn't seem to change. I guess I should have summarized my questions a bit more:
|
I can confirm this. for mainline there's a similar showstopper: When a commit is tagged with prerelease-tag (e.g. e.g.
cause: the beta-version tag is used as version source and commit count. when the beta tag would be considered version source, mainline should be 1.1.1 after the beta tag is created, as it is for a final version tag. but that causes jumping back in mainline when a new beta is created "in between". |
Hi @asbjornu , just checking in - do you have any idea for the above questions? |
@dxynnez does removing |
This issue is probably related to #3438.
|
Describe the bug
Hi there, I am new to gitversion and currently trying to setup our CI to integrate with it. But can't really get it to work the way we wanted.
We have develop branch that our daily PR would go into with the following config:
I am trying this out with a new repo without any tag. Running gitversion would give me:
I then tag the latest commit with git tag "v1.0.0-beta", then add another commit with git commit --allow-empty -m "noop"
I was expecting the next gitversion to be 1.0.1-beta now but it didn't change. If I tag the commit without the '-beta' tag then this would work, though. Is this expected? Is there any way to tag the commit with full semver format and still have it to be recognized by gitversion?
Also, after merging the commit to release and tag the merge commit with "v1.1.0", running gitversion on the develop branch would still give me the old version number (1.0.1), adding another empty commit would result in 1.0.2 (I was expecting it to be 1.1.0) at this point since I set track-merge-target: true. Is this also expected?
We would like to achieve that, with each individual commit into develop, only the patch version would be bumped. We do weekly merge from develop -> release and with that the minor version would be bump and reset patch version back to zero (so that we know it includes all the patches in the previous minor version). Then we want the develop branch to pickup the new minor version and start a new cycle. Is this indeed possible with gitversion? Thanks in advance!
The text was updated successfully, but these errors were encountered: