Skip to content

No ability to increment Patch on subsequent commits #3676

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

You must be logged in to vote

I have tried to reproduce your issue but the result is like you would expecting it. Please see the following integration test:

public class MainlineDevelopmentMode3674 : TestBase
{
    private static IGitVersionConfiguration GetMainlineModeConfiguration() => GitFlowConfigurationBuilder.New
        .WithVersioningMode(VersioningMode.Mainline).WithLabel(null)
        .WithSemanticVersionFormat(SemanticVersionFormat.Loose)
        .WithBranch("develop", builder => builder
            .WithVersioningMode(VersioningMode.Mainline)
            .WithRegularExpression("^main")
            .WithIncrement(IncrementStrategy.Minor)
            .WithIsMainline(true)
            .WithLabel(null)
        ).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@HHobeck
Comment options

Answer selected by konek3
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
Converted from issue

This discussion was converted from issue #3674 on September 01, 2023 05:57.