-
Notifications
You must be signed in to change notification settings - Fork 60k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35387 from github/repo-sync
Repo sync
- Loading branch information
Showing
4 changed files
with
12 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,10 @@ export const versionToIndexVersionMap: { [key: string]: string } = {} | |
// For each potential input (from request query string, CLI, etc), map it to the appropriate index version | ||
for (const versionSource of Object.values(allVersions)) { | ||
if (versionSource.hasNumberedReleases) { | ||
// Map version number to corresponding release, e.g. `3.14` -> `ghes-3.14` | ||
versionToIndexVersionMap[versionSource.currentRelease] = versionSource.miscVersionName | ||
// Map full release name to corresponding release, e.g. `[email protected]` -> `ghes-3.14` | ||
versionToIndexVersionMap[versionSource.version] = versionSource.miscVersionName | ||
// Map shortname or plan, e.g. `ghes` or `enterprise-server` to the latest release, e.g. `ghes-3.14` | ||
if (versionSource.latestRelease === versionSource.currentRelease) { | ||
versionToIndexVersionMap[versionSource.plan] = versionSource.miscVersionName | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters