Address feedback

This commit is contained in:
Michelle McDaniel 2021-03-02 07:19:31 -08:00
parent f6593a76ec
commit 4e8ff8d04a
3 changed files with 14 additions and 17 deletions

View file

@ -163,7 +163,12 @@ let winMuslReferenceTemplate: ReferenceTemplate = {
let formatTemplate (platform: String) (template: ReferenceTemplate) (branch: Branch): Option<string> =
if branch.AkaMsChannel <> None then
if branch.UseLegacyAkaMsTemplate then
let useLegacyAkaMsTemplate =
match getMajorMinor branch with
| Master -> false
| MajorMinor { Major = major; Minor = _minor; Patch = patch } when major = 5 && patch < 300 -> true
| _ -> false
if useLegacyAkaMsTemplate then
Some (String.Format(template.AkaMSLegacyTemplate,
platform, // 0 - win-x64
(branchNameShorten branch), // 1 - 5.0.1xx-preview2