* Issue template stuff for creating megabranch * Fix placeholder YAML * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * Add release candidate banner * update search indexes * update search indexes * update search indexes * update search indexes * [GHES 3.2]: Remove final notes about machine man preview (GA) (#20939) * update search indexes * update search indexes * Add GHES versioning to "Managing your theme settings" (#20950) * update search indexes * [GHES 3.2]: Fix versioning for security alerts (#20761) * made a start * rework * move image to an enterprise 3.1 folder * forgot to commit * simplify reusable * update search indexes * update search indexes * update search indexes * Updated basic 3.2 REST fiels after package change These will be overwritten before release by the new description files when the 3.2 description is properly published * update search indexes * GHAE feature flag for `security alerts` custom notification option (#20979) * made a start * rework * move image to an enterprise 3.1 folder * forgot to commit * simplify reusable * add GHAE feature flag * remove spurious spaces I had added * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * Update versioning (#21121) Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com> * update search indexes * Add the new service (#21060) * update search indexes * update search indexes * update search indexes * Fix parent category index versioning for security overview * update search indexes * [GHES 3.2] Add documentation for GHES Referrer Policy Admin setting (#20910) Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com> Co-authored-by: Jules Parker <19994093+jules-p@users.noreply.github.com> Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com> * update search indexes * update search indexes * Update "Review hardware considerations" table (#21208) Performance improvements resulted in higher maximum job throughput and the new benchmarks need to be shared with current and potential customers. * update search indexes * Version new GHES 3.2 Actions tested performance (#21212) * update search indexes * Update "Review hardware considerations" table v2 Feedback from additional reviewers requires an update to the benchmarks previously merged. * update search indexes * update search indexes * [GHES 3.2] - Dependency Graph: Simplified enablement in GHES (GA) (#21078) * document UI button for dependency graph GHES 3.2 * update search indexes * Update getting-started-with-github-actions-for-github-enterprise-server.md * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * [GHES 3.2] Release candidate 1 release notes (#20799) Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> Co-authored-by: bwestover <bwestover@github.com> Co-authored-by: Martin Lopes <martin389@github.com> Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: Grey Baker <greysteil@github.com> Co-authored-by: Bas van Schaik <5082246+sj@users.noreply.github.com> Co-authored-by: William Bartholomew <iamwillbar@github.com> * update search indexes * update search indexes * update search indexes * update search indexes * update search indexes * Update OpenAPI Descriptions for GHES 3.2 (#21377) Also contains a rollup of other unmerged OpenAPI changes Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com> Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com> * update search indexes Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: GitHub Actions <action@github.com> Co-authored-by: Docubot <67483024+docubot@users.noreply.github.com> Co-authored-by: Laura Coursen <lecoursen@github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com> Co-authored-by: Felicity Chapman <felicitymay@github.com> Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com> Co-authored-by: Matthias Wenz <matthiaswenz@github.com> Co-authored-by: jmarlena <6732600+jmarlena@users.noreply.github.com> Co-authored-by: Jules Parker <19994093+jules-p@users.noreply.github.com> Co-authored-by: Steve-Glass <84886334+Steve-Glass@users.noreply.github.com> Co-authored-by: Meg Bird <megbird@github.com> Co-authored-by: bwestover <bwestover@github.com> Co-authored-by: Martin Lopes <martin389@github.com> Co-authored-by: Grey Baker <greysteil@github.com> Co-authored-by: Bas van Schaik <5082246+sj@users.noreply.github.com> Co-authored-by: William Bartholomew <iamwillbar@github.com> Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com> Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
102 lines
2.9 KiB
JavaScript
102 lines
2.9 KiB
JavaScript
import versionSatisfiesRange from './version-satisfies-range.js'
|
|
import path from 'path'
|
|
import readFileAsync from './readfile-async.js'
|
|
|
|
export const dates = JSON.parse(
|
|
await readFileAsync(path.join(process.cwd(), './lib/enterprise-dates.json'))
|
|
)
|
|
|
|
// GHES Release Lifecycle Dates:
|
|
// enterprise-releases/docs/supported-versions.md#release-lifecycle-dates
|
|
|
|
// Some frontmatter may contain the upcoming GHES release number
|
|
export const next = '3.3'
|
|
|
|
export const supported = ['3.2', '3.1', '3.0', '2.22']
|
|
export const deprecated = [
|
|
'2.21',
|
|
'2.20',
|
|
'2.19',
|
|
'2.18',
|
|
'2.17',
|
|
'2.16',
|
|
'2.15',
|
|
'2.14',
|
|
'2.13',
|
|
'2.12',
|
|
'2.11',
|
|
'2.10',
|
|
'2.9',
|
|
'2.8',
|
|
'2.7',
|
|
'2.6',
|
|
'2.5',
|
|
'2.4',
|
|
'2.3',
|
|
'2.2',
|
|
'2.1',
|
|
'2.0',
|
|
'11.10.340',
|
|
]
|
|
export const legacyAssetVersions = ['3.0', '2.22', '2.21']
|
|
|
|
export const all = supported.concat(deprecated)
|
|
export const latest = supported[0]
|
|
export const oldestSupported = supported[supported.length - 1]
|
|
export const nextDeprecationDate = dates[oldestSupported].deprecationDate
|
|
export const isOldestReleaseDeprecated = new Date() > new Date(nextDeprecationDate)
|
|
export const deprecatedOnNewSite = deprecated.filter((version) =>
|
|
versionSatisfiesRange(version, '>=2.13')
|
|
)
|
|
export const firstVersionDeprecatedOnNewSite = '2.13'
|
|
// starting from 2.18, we updated the archival script to create a redirects.json top-level file in the archived repo
|
|
export const lastVersionWithoutArchivedRedirectsFile = '2.17'
|
|
// last version using paths like /enterprise/<release>/<user>/<product>/<category>/<article>
|
|
// instead of /enterprise-server@<release>/<product>/<category>/<article>
|
|
export const lastReleaseWithLegacyFormat = '2.18'
|
|
export const deprecatedReleasesWithLegacyFormat = deprecated.filter((version) =>
|
|
versionSatisfiesRange(version, '<=2.18')
|
|
)
|
|
export const deprecatedReleasesWithNewFormat = deprecated.filter((version) =>
|
|
versionSatisfiesRange(version, '>2.18')
|
|
)
|
|
export const deprecatedReleasesOnDeveloperSite = deprecated.filter((version) =>
|
|
versionSatisfiesRange(version, '<=2.16')
|
|
)
|
|
export const firstReleaseNote = '2.20'
|
|
export const firstRestoredAdminGuides = '2.21'
|
|
|
|
export const findReleaseNumberIndex = (releaseNum) => {
|
|
return all.findIndex((i) => i === releaseNum)
|
|
}
|
|
export const getNextReleaseNumber = (releaseNum) => {
|
|
return all[findReleaseNumberIndex(releaseNum) - 1]
|
|
}
|
|
export const getPreviousReleaseNumber = (releaseNum) => {
|
|
return all[findReleaseNumberIndex(releaseNum) + 1]
|
|
}
|
|
|
|
export default {
|
|
next,
|
|
supported,
|
|
deprecated,
|
|
legacyAssetVersions,
|
|
all,
|
|
latest,
|
|
oldestSupported,
|
|
nextDeprecationDate,
|
|
isOldestReleaseDeprecated,
|
|
deprecatedOnNewSite,
|
|
dates,
|
|
firstVersionDeprecatedOnNewSite,
|
|
lastVersionWithoutArchivedRedirectsFile,
|
|
lastReleaseWithLegacyFormat,
|
|
deprecatedReleasesWithLegacyFormat,
|
|
deprecatedReleasesWithNewFormat,
|
|
deprecatedReleasesOnDeveloperSite,
|
|
firstReleaseNote,
|
|
firstRestoredAdminGuides,
|
|
getNextReleaseNumber,
|
|
getPreviousReleaseNumber,
|
|
}
|