Restore compatibility with GHES 3.1
This commit is contained in:
parent
761da7eb50
commit
aeefdce612
19 changed files with 149 additions and 37 deletions
10
src/util.ts
10
src/util.ts
|
|
@ -594,6 +594,16 @@ export function isHTTPError(arg: any): arg is HTTPError {
|
|||
return arg?.status !== undefined && Number.isInteger(arg.status);
|
||||
}
|
||||
|
||||
export function isGitHubGhesVersionBelow(
|
||||
gitHubVersion: GitHubVersion,
|
||||
expectedVersion: string
|
||||
): boolean {
|
||||
return (
|
||||
gitHubVersion.type === GitHubVariant.GHES &&
|
||||
semver.lt(gitHubVersion.version, expectedVersion)
|
||||
);
|
||||
}
|
||||
|
||||
export async function codeQlVersionAbove(
|
||||
codeql: CodeQL,
|
||||
requiredVersion: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue