forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify the directory and script names for graphql pipeline (#36756)
- Loading branch information
Showing
12 changed files
with
15 additions
and
15 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ async function main() { | |
// For example, free-pro-team@latest corresponds to dotcom, | ||
// [email protected] corresponds to ghes-2.22, | ||
// and github-ae@latest corresponds to ghae | ||
const graphqlVersion = allVersions[version].miscVersionName | ||
const graphqlVersion = allVersions[version].openApiVersionName | ||
|
||
// 1. UPDATE PREVIEWS | ||
const previewsPath = getDataFilepath('previews', graphqlVersion) | ||
|
@@ -115,7 +115,7 @@ function getDataFilepath(id, graphqlVersion) { | |
|
||
// dotcom files live at the root of data/graphql | ||
// non-dotcom files live in data/graphql/<version_subdir> | ||
const dataSubdir = graphqlVersion === 'dotcom' ? '' : graphqlVersion | ||
const dataSubdir = graphqlVersion === 'fpt' ? '' : graphqlVersion | ||
|
||
return path.join(graphqlDataDir, dataSubdir, filename) | ||
} | ||
|
@@ -125,7 +125,7 @@ async function setBranchAsRef(options, graphqlVersion, branch = false) { | |
const defaultBranch = 'master' | ||
|
||
const branches = { | ||
dotcom: defaultBranch, | ||
fpt: defaultBranch, | ||
ghec: defaultBranch, | ||
ghes: `enterprise-${graphqlVersion.replace('ghes-', '')}-release`, | ||
// TODO confirm the below is accurate after the release branch is created | ||
|
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