Skip to content
Discussion options

You must be logged in to vote

Thank you very much providing the integration test. Indeed merging back from main to the development branch can be problematic:

Anyway I think your use case is different. If you use the following workflow it works like expected:

  [Test]
  public void IssueTest()
  {
      using var fixture = new EmptyRepositoryFixture();

      fixture.MakeACommit();
      fixture.BranchTo("offending-branch");
      fixture.MakeACommit();
      fixture.Checkout("main");
      fixture.MergeTo("offending-branch");
      fixture.Repository.CreatePullRequestRef("offending-branch", "main", prNumber: 4, normalise: true);

      IGitVersionConfiguration trunkBased = TrunkBasedConfigurationBuilder.New.Build

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by HHobeck
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 #4138 on September 28, 2024 19:29.