Skip to content

next-version as base version? #3705

Answered by HHobeck
vernou asked this question in Q&A
Sep 30, 2023 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

If you take this scenario you see a very strange behavior:

[Test]
public void _Just_A_Test__()
{
    var configuration = GitHubFlowConfigurationBuilder.New.WithNextVersion("1.1.0")
        .WithBranch("main", _ => _.WithVersioningMode(VersioningMode.Mainline))
        .WithBranch("feature", _ => _.WithVersioningMode(VersioningMode.Mainline).WithIncrement(IncrementStrategy.Major))
        .Build();
    using var fixture = new EmptyRepositoryFixture("main");

    fixture.MakeATaggedCommit("1.0.0");

    fixture.BranchTo("feature/foo");
    fixture.MakeACommit();
    fixture.MakeACommit();
    fixture.MakeACommit();

    // ❌ expected: 2.0.0-foo.3
    fixture.AssertFullSemver("1.0.0-foo.3",

Replies: 3 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by vernou
Comment options

You must be logged in to vote
2 replies
@HHobeck
Comment options

@goors
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants