Change variable name
This commit is contained in:
parent
fb92589f44
commit
abda88da89
3 changed files with 9 additions and 9 deletions
|
@ -9,31 +9,31 @@ let inputBranches =
|
||||||
[ { GitBranchName = "master"
|
[ { GitBranchName = "master"
|
||||||
DisplayName = "Master<br>(6.0.x Runtime)"
|
DisplayName = "Master<br>(6.0.x Runtime)"
|
||||||
AkaMsChannel = Some("6.0/daily")
|
AkaMsChannel = Some("6.0/daily")
|
||||||
UseLegacyAkaMsChannel = false }
|
UseLegacyAkaMsTemplate = false }
|
||||||
{ GitBranchName = "release/6.0.1xx-preview2"
|
{ GitBranchName = "release/6.0.1xx-preview2"
|
||||||
DisplayName = "Release/6.0.1XX-preview2<br>(6.0.x Runtime)"
|
DisplayName = "Release/6.0.1XX-preview2<br>(6.0.x Runtime)"
|
||||||
AkaMsChannel = Some("6.0.1XX-preview2/daily")
|
AkaMsChannel = Some("6.0.1XX-preview2/daily")
|
||||||
UseLegacyAkaMsChannel = false }
|
UseLegacyAkaMsTemplate = 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")
|
||||||
UseLegacyAkaMsChannel = false }
|
UseLegacyAkaMsTemplate = 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")
|
||||||
UseLegacyAkaMsChannel = true }
|
UseLegacyAkaMsTemplate = 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")
|
||||||
UseLegacyAkaMsChannel = true }
|
UseLegacyAkaMsTemplate = 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
|
||||||
UseLegacyAkaMsChannel = false }
|
UseLegacyAkaMsTemplate = 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
|
||||||
UseLegacyAkaMsChannel = false }]
|
UseLegacyAkaMsTemplate = false }]
|
||||||
|
|
||||||
|
|
||||||
let referentNotes = """Reference notes:
|
let referentNotes = """Reference notes:
|
||||||
|
|
|
@ -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.UseLegacyAkaMsChannel then
|
if branch.UseLegacyAkaMsTemplate 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
|
||||||
|
|
|
@ -7,7 +7,7 @@ type Branch =
|
||||||
{ GitBranchName: string
|
{ GitBranchName: string
|
||||||
DisplayName: string
|
DisplayName: string
|
||||||
AkaMsChannel: string option
|
AkaMsChannel: string option
|
||||||
UseLegacyAkaMsChannel: bool }
|
UseLegacyAkaMsTemplate: bool }
|
||||||
|
|
||||||
type ReferenceTemplate =
|
type ReferenceTemplate =
|
||||||
{ AkaMSTemplate: string
|
{ AkaMSTemplate: string
|
||||||
|
|
Loading…
Reference in a new issue