Skip to content

Prerelease NuGet version when squashing commits in Merge Request #1311

@varasies

Description

@varasies

Is there a strategy for calculating the NuGet version on merge request builds that will have its commits squashed when merging to main.

Scenario:

  • Initial Version 1.1
  • Feature Branch has 10 commits

In this scenario the MR builds will create prerelease NuGet packages with version 1.1.12-sha for testing. Once the MR is complete a release NuGet package with version 1.1.3 would be built from the master branch which would appear older than the prerelease package version.

A workaround for this would be to not squish the merge request but that would make rolling the entire merge request back more complicated if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions