1
0
mirror of synced 2026-01-05 21:04:17 -05:00

update ghes double digit check (#47000)

Co-authored-by: Rachael Sewell <rachmari@github.com>
This commit is contained in:
Grace Park
2023-11-30 15:42:55 -08:00
committed by GitHub
parent 81bd14c380
commit 888973e974

View File

@@ -37,7 +37,14 @@ async function getDataFrontmatter(dataDirectory, schemaFilename) {
// This makes the deprecation steps easier.
.filter((file) => {
return !deprecated.some((depVersion) =>
file.split(path.sep).find((pathSplit) => pathSplit.includes(depVersion)),
file.split(path.sep).find((pathSplit) => {
if (pathSplit.startsWith('ghes')) {
// An example version format is: ghes-3.6 or ghes-3.6-2022-01-01
const ghesVersion = pathSplit.split('-')[1]
return ghesVersion === depVersion
}
return false
}),
)
})