Rename variable

This commit is contained in:
Michelle McDaniel 2021-03-01 13:33:51 -08:00
parent 84730a2aa8
commit fb92589f44
3 changed files with 9 additions and 9 deletions

View file

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

View file

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

View file

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