diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2020-05-18 13:05:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 13:05:15 -0400 |
| commit | 668d86fc619a391e755581af86c427e216494727 (patch) | |
| tree | cd17508c967f8f54b55da257ab9de51bec3cc243 /src/url-helper.ts | |
| parent | e55727d418e99c52db29fa5e822f0eb64ce9b1ca (diff) | |
switch GITHUB_URL to GITHUB_SERVER_URL (#248)
Diffstat (limited to 'src/url-helper.ts')
| -rw-r--r-- | src/url-helper.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/url-helper.ts b/src/url-helper.ts index 31848c7..05f1cbd 100644 --- a/src/url-helper.ts +++ b/src/url-helper.ts @@ -20,5 +20,10 @@ export function getFetchUrl(settings: IGitSourceSettings): string { } export function getServerUrl(): URL { - return new URL(process.env['GITHUB_URL'] || 'https://github.com') + // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed + return new URL( + process.env['GITHUB_SERVER_URL'] || + process.env['GITHUB_URL'] || + 'https://github.com' + ) } |
