Skip to content

Use gitversion when promoting builds across environments #3428

Answered by HHobeck
sam-wheat asked this question in Q&A
Discussion options

You must be logged in to vote

If I understand you correct you would like to have a different pre-release label dependent on the tag:

   [Test]
    public void Just_A_Test()
    {
        var configuration = GitHubFlowConfigurationBuilder.New
            .WithBranch("main", branchBuilder => branchBuilder
                .WithIncrement(IncrementStrategy.Minor)
            ).Build();

        using var fixture = new EmptyRepositoryFixture("main");

        fixture.Repository.MakeACommit();

        fixture.AssertFullSemver("0.1.0+1", configuration);

        fixture.Repository.ApplyTag("0.1.0-alpha.1");

        fixture.AssertFullSemver("0.1.0+1", configuration);

        fixture.Repository.MakeACommit();

        fixture.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sam-wheat
Comment options

@HHobeck
Comment options

@HHobeck
Comment options

@sam-wheat
Comment options

Answer selected by sam-wheat
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