Skip to content

Allow {BranchName} in tag config #664

Closed

Description

@o-o00o-o

As per #632

Currently the prerelease tag configuration is fine except for feature branches where there can be many of them at the same time for the same version. The problem here is that with the current useBranchName config, feature branches starting with "a" are considered the lowest prerelease version and any feature branch starting with "z" will be the latest one. To solve this we should be able to prefix the feature braches "something." so they can be positioned in the desired order consistently no matter what the name of the feaure branch.

E.g feature/AddForgottenPassword and feature/ZeroAllowedInAmount could be v1.0.0-alpha.AddForgottenPassword and v1.0.0-alpha.ZeroAllowedInAmount which would then both be seen as the same level compared with the other develop/release and master branches.

To achieve this @JakeGinnivan suggested using c# string interpolation so in config something like:

tag: alpha.{BranchName}

For branch feature/FixLogin
Would produce a semver like 0.0.0-alpha.FixLogin

Activity

  1. added a commit that references this issue on Jan 30, 2016
  2. gusztavvargadr commented on Jan 30, 2016

    @gusztavvargadr
    Contributor

    I just wanted to double check if is #766 what you expect, but I see it just got merged, thanks @JakeGinnivan :)

  3. JakeGinnivan commented on Jan 30, 2016

    @JakeGinnivan
    Contributor

    Yep, exactly what I was after.

    I think in v4 this will become the default behaviour.

  4. added a commit that references this issue on Jan 31, 2016
  5. mkoertgen commented on Feb 26, 2016

    @mkoertgen
    Contributor

    Great feature!

    +1 for making tag: alpha.{BranchName} the new default for feature branches.

    BTW, this feature enables to workaround problems with nuget pack when feature branches begin with a number, cf. NuGet/Home#1743, which seems to be common practice when working with issue trackers.

    Very cool. Using it straight away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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