1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Fix GHES download links (#19655)

Set the value for `patch.downloadVersion` again to appropriately render GHES download links (including release candidates)

Fixes https://github.com/github/docs-internal/issues/19652
This commit is contained in:
James M. Greene
2021-06-01 14:40:56 -05:00
committed by GitHub
parent 16b40602b3
commit e2da413f7b

View File

@@ -12,6 +12,7 @@ function sortPatchKeys (release, version, options = {}) {
return {
version: `${version}.${keyWithDots}`,
patchVersion: keyWithDots,
downloadVersion: `${version}.${keyWithDots.replace(/\.rc\d*$/, '')}`,
release: version, // TODO this naming :/ we are not currently using this value, but we may want to.
...release[key]
}