Skip to content

Commit

Permalink
Merge pull request #629 from TestCentric/release-1.5.2
Browse files Browse the repository at this point in the history
Create 1.5.2 Release
  • Loading branch information
CharliePoole authored Dec 17, 2020
2 parents 8537dbd + 1711e01 commit 5b3f8c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ Task("CreateDraftRelease")
}
});

private static string GetMilestoneFromBranchName(string branchName)
private string GetMilestoneFromBranchName(string branchName)
{
Version versionFromBranch;
if (!Version.TryParse(branchName.Substring(8), out versionFromBranch))
Expand All @@ -430,9 +430,8 @@ Task("CreateDraftRelease")
if (versionFromBranch.Build < 0)
throw new InvalidOperationException("Release branch must specify three version components.");

string milestone = versionFromBranch.Build <= 0
? versionFromBranch.ToString(2)
: versionFromBranch.ToString(3);
string milestone = versionFromBranch.ToString(3);

// if (_parameters.IsPreRelease)
// milestone += $"-{_parameters.BuildVersion.PreReleaseSuffix}";

Expand Down

0 comments on commit 5b3f8c8

Please sign in to comment.