Address feedback
This commit is contained in:
parent
f6593a76ec
commit
4e8ff8d04a
3 changed files with 14 additions and 17 deletions
|
@ -8,32 +8,25 @@ open TableGenerator.Table
|
|||
let inputBranches =
|
||||
[ { GitBranchName = "master"
|
||||
DisplayName = "Master<br>(6.0.x Runtime)"
|
||||
AkaMsChannel = Some("6.0/daily")
|
||||
UseLegacyAkaMsTemplate = false }
|
||||
AkaMsChannel = Some("6.0/daily") }
|
||||
{ GitBranchName = "release/6.0.1xx-preview2"
|
||||
DisplayName = "Release/6.0.1XX-preview2<br>(6.0.x Runtime)"
|
||||
AkaMsChannel = Some("6.0.1XX-preview2/daily")
|
||||
UseLegacyAkaMsTemplate = false }
|
||||
AkaMsChannel = Some("6.0.1XX-preview2/daily") }
|
||||
{ GitBranchName = "release/5.0.3xx"
|
||||
DisplayName = "Release/5.0.3XX<br>(5.0 Runtime)"
|
||||
AkaMsChannel = Some("5.0.3xx/daily")
|
||||
UseLegacyAkaMsTemplate = false }
|
||||
AkaMsChannel = Some("5.0.3xx/daily") }
|
||||
{ GitBranchName = "release/5.0.2xx"
|
||||
DisplayName = "Release/5.0.2XX<br>(5.0 Runtime)"
|
||||
AkaMsChannel = Some("5.0.2xx/daily")
|
||||
UseLegacyAkaMsTemplate = true }
|
||||
AkaMsChannel = Some("5.0.2xx/daily") }
|
||||
{ GitBranchName = "release/5.0.1xx-rtm"
|
||||
DisplayName = "5.0.100 RTM<br>(5.0 Runtime)"
|
||||
AkaMsChannel = Some("net5/5.0.1xx/daily")
|
||||
UseLegacyAkaMsTemplate = true }
|
||||
AkaMsChannel = Some("net5/5.0.1xx/daily") }
|
||||
{ GitBranchName = "release/3.1.4xx"
|
||||
DisplayName = "Release/3.1.4XX<br>(3.1.x Runtime)"
|
||||
AkaMsChannel = None
|
||||
UseLegacyAkaMsTemplate = false }
|
||||
AkaMsChannel = None }
|
||||
{ GitBranchName = "release/3.1.1xx"
|
||||
DisplayName = "Release/3.1.1XX<br>(3.1.x Runtime)"
|
||||
AkaMsChannel = None
|
||||
UseLegacyAkaMsTemplate = false }]
|
||||
AkaMsChannel = None }]
|
||||
|
||||
|
||||
let referentNotes = """Reference notes:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,8 +6,7 @@ open System
|
|||
type Branch =
|
||||
{ GitBranchName: string
|
||||
DisplayName: string
|
||||
AkaMsChannel: string option
|
||||
UseLegacyAkaMsTemplate: bool }
|
||||
AkaMsChannel: string option }
|
||||
|
||||
type ReferenceTemplate =
|
||||
{ AkaMSTemplate: string
|
||||
|
|
Loading…
Reference in a new issue