Loading dist/index.js +4 −1 Changes for dist/index.js: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -1400,7 +1400,10 @@ function getFetchUrl(settings) { } exports.getFetchUrl = getFetchUrl; function getServerUrl() { return new url_1.URL(process.env['GITHUB_URL'] || 'https://github.com'); // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed return new url_1.URL(process.env['GITHUB_SERVER_URL'] || process.env['GITHUB_URL'] || 'https://github.com'); } exports.getServerUrl = getServerUrl; Loading src/url-helper.ts +6 −1 Changes for src/url-helper.ts: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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' ) } Loading
dist/index.js +4 −1 Changes for dist/index.js: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -1400,7 +1400,10 @@ function getFetchUrl(settings) { } exports.getFetchUrl = getFetchUrl; function getServerUrl() { return new url_1.URL(process.env['GITHUB_URL'] || 'https://github.com'); // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed return new url_1.URL(process.env['GITHUB_SERVER_URL'] || process.env['GITHUB_URL'] || 'https://github.com'); } exports.getServerUrl = getServerUrl; Loading
src/url-helper.ts +6 −1 Changes for src/url-helper.ts: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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' ) }