MCPcopy Index your code
hub / github.com/github/docs / validateVersion

Function validateVersion

tests/linting/lint-versioning.js:100–106  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

98
99// Return true if the shortname in the conditional is supported (fpt, ghec, ghes, ghae, all feature names).
100function validateVersion(version) {
101 return (
102 allowedVersionNames.includes(version) ||
103 // TODO - REMOVE THE FOLLOWING 'OR' WHEN GHAE IS UPDATED WITH SEMVER VERSIONING
104 /ghae-issue-\d{4}/.test(version)
105 )
106}
107
108// TODO: Temporary check for presence of deprecated GHAE feature flags in FM.
109// See details in docs-internal#29178.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected