Add detection for GitHub AE.
This commit is contained in:
parent
781e3bc540
commit
0656b2c1ad
10 changed files with 27 additions and 6 deletions
3
lib/util.js
generated
3
lib/util.js
generated
|
|
@ -211,6 +211,9 @@ async function getGitHubVersion(apiDetails) {
|
|||
if (response.headers[GITHUB_ENTERPRISE_VERSION_HEADER] === undefined) {
|
||||
return { type: "dotcom" };
|
||||
}
|
||||
if (response.headers[GITHUB_ENTERPRISE_VERSION_HEADER] === "GitHub AE") {
|
||||
return { type: "ghae" };
|
||||
}
|
||||
const version = response.headers[GITHUB_ENTERPRISE_VERSION_HEADER];
|
||||
return { type: "ghes", version };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue