Skip to content

Main branch version after merge not matching version from merged branch #3944

Answered by HHobeck
clementhervy asked this question in Q&A
Discussion options

You must be logged in to vote

I have uncommented the following integration test and execute it with the code base of the pre-release version 6.0.0-beta.5. It was working like expected:

[Test]
public void MergeFeatureIntoMainlineWithMinorIncrementAndThenMergeHotfix()
{
    var configuration = GitFlowConfigurationBuilder.New
        .WithVersioningMode(VersioningMode.Mainline)
        .WithBranch("feature", builder => builder
            .WithIncrement(IncrementStrategy.Minor)
            .WithVersioningMode(VersioningMode.Mainline))
        .WithBranch("hotfix", builder => builder.WithVersioningMode(VersioningMode.Mainline))
        .Build();

    using var fixture = new EmptyRepositoryFixture();
    fixture.MakeACommit()

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@clementhervy
Comment options

Comment options

You must be logged in to vote
3 replies
@clementhervy
Comment options

@clementhervy
Comment options

@HHobeck
Comment options

Answer selected by HHobeck
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants