Change variable name

This commit is contained in:
Michelle McDaniel 2021-03-01 13:35:11 -08:00
parent fb92589f44
commit abda88da89
3 changed files with 9 additions and 9 deletions

View file

@ -9,31 +9,31 @@ let inputBranches =
[ { GitBranchName = "master"
DisplayName = "Master<br>(6.0.x&nbsp;Runtime)"
AkaMsChannel = Some("6.0/daily")
UseLegacyAkaMsChannel = false }
UseLegacyAkaMsTemplate = false }
{ GitBranchName = "release/6.0.1xx-preview2"
DisplayName = "Release/6.0.1XX-preview2<br>(6.0.x&nbsp;Runtime)"
AkaMsChannel = Some("6.0.1XX-preview2/daily")
UseLegacyAkaMsChannel = false }
UseLegacyAkaMsTemplate = false }
{ GitBranchName = "release/5.0.3xx"
DisplayName = "Release/5.0.3XX<br>(5.0 Runtime)"
AkaMsChannel = Some("5.0.3xx/daily")
UseLegacyAkaMsChannel = false }
UseLegacyAkaMsTemplate = false }
{ GitBranchName = "release/5.0.2xx"
DisplayName = "Release/5.0.2XX<br>(5.0 Runtime)"
AkaMsChannel = Some("5.0.2xx/daily")
UseLegacyAkaMsChannel = true }
UseLegacyAkaMsTemplate = true }
{ GitBranchName = "release/5.0.1xx-rtm"
DisplayName = "5.0.100 RTM<br>(5.0 Runtime)"
AkaMsChannel = Some("net5/5.0.1xx/daily")
UseLegacyAkaMsChannel = true }
UseLegacyAkaMsTemplate = true }
{ GitBranchName = "release/3.1.4xx"
DisplayName = "Release/3.1.4XX<br>(3.1.x Runtime)"
AkaMsChannel = None
UseLegacyAkaMsChannel = false }
UseLegacyAkaMsTemplate = false }
{ GitBranchName = "release/3.1.1xx"
DisplayName = "Release/3.1.1XX<br>(3.1.x Runtime)"
AkaMsChannel = None
UseLegacyAkaMsChannel = false }]
UseLegacyAkaMsTemplate = false }]
let referentNotes = """Reference notes:

View file

@ -163,7 +163,7 @@ let winMuslReferenceTemplate: ReferenceTemplate = {
let formatTemplate (platform: String) (template: ReferenceTemplate) (branch: Branch): Option<string> =
if branch.AkaMsChannel <> None then
if branch.UseLegacyAkaMsChannel then
if branch.UseLegacyAkaMsTemplate then
Some (String.Format(template.AkaMSLegacyTemplate,
platform, // 0 - win-x64
(branchNameShorten branch), // 1 - 5.0.1xx-preview2

View file

@ -7,7 +7,7 @@ type Branch =
{ GitBranchName: string
DisplayName: string
AkaMsChannel: string option
UseLegacyAkaMsChannel: bool }
UseLegacyAkaMsTemplate: bool }
type ReferenceTemplate =
{ AkaMSTemplate: string