-
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
[Feature] Same version computed on different branches #3898
[Feature] Same version computed on different branches #3898
Conversation
Hi @asbjornu. I'm not sure if you are agree with the new branch related property with name Thank's |
799b9e2
to
5d0784b
Compare
5d0784b
to
ad400b7
Compare
Do I understand this issue correctly when it's about whether we want to consider the |
At the end the criteria you are mentioned is correct. But you need to think about the semantic meaning. We have one or more strategies who are determining the existing base versions with an indication should the version be incremented yes or no. We are calculating based on this the next version and take the one which is highest. The result is we have exactly one base version and one incremented version (which might be equal). Now this feature comes in place where we want for some branches not to use the incremented version but the base version. I can think of the following use cases:
Your proposed property with name Does it make sense? |
ad400b7
to
f3654ad
Compare
Right. But wouldn't then |
But we want to increment the version on the branch but only if the commit was not released (marked not with a tag). Edit: If you increment the version with value |
a63e469
to
c0673dc
Compare
Maybe the following enum values are better: internal enum TakeIncrementedVersion
{
Never,
IfNotReleased/Tagged,
Always
} |
a985f4e
to
7c10519
Compare
Actually I would like to do this in a separate PR if you not mind. Please review the changes and merge it to main. Thank you. |
49eee78
to
847125e
Compare
src/GitVersion.Core.Tests/VersionCalculation/VariableProviderTests.cs
Outdated
Show resolved
Hide resolved
src/GitVersion.Core/VersionCalculation/VersionCalculators/ManualDeploymentVersionCalculator.cs
Outdated
Show resolved
Hide resolved
@HHobeck please update your branch then rebase on top of origin/main |
e7b870b
to
8b968a0
Compare
I think this PR can be merged right!? |
...ests/Configuration/ConfigurationProviderTests.CanWriteOutEffectiveConfiguration.approved.txt
Outdated
Show resolved
Hide resolved
...ests/Configuration/ConfigurationProviderTests.CanWriteOutEffectiveConfiguration.approved.txt
Outdated
Show resolved
Hide resolved
...ests/Configuration/ConfigurationProviderTests.CanWriteOutEffectiveConfiguration.approved.txt
Outdated
Show resolved
Hide resolved
…ersionCalculator.
…t-commit-tagged and update documentation.
…grate code review remarks.
248ae66
to
589e353
Compare
@asbjornu is anything left to review or we can merge? |
Thank you @HHobeck for your contribution! |
[Feature] Same version computed on different branches:
Close #3453
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Checklist: