Skip to content

Commit

Permalink
Merge pull request #1198 from nunit/issue-1196
Browse files Browse the repository at this point in the history
Create dev release when merging into version3 branch
  • Loading branch information
CharliePoole committed Jun 30, 2022
2 parents a1bfef7 + 7dc0f03 commit f2564da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/versioning.cake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public class BuildVersion

string branchName = _gitVersion.BranchName;

// Treat version3 branch as an alternate "main"
if (branchName == "version3")
label = "dev";

// We don't currently use this pattern, but check in case we do later.
if (branchName.StartsWith("feature/"))
branchName = branchName.Substring(8);
Expand Down

0 comments on commit f2564da

Please sign in to comment.