File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1400,7 +1400,10 @@ function getFetchUrl(settings) {
1400
1400
}
1401
1401
exports.getFetchUrl = getFetchUrl;
1402
1402
function getServerUrl() {
1403
- return new url_1.URL(process.env['GITHUB_URL'] || 'https://github.com');
1403
+ // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
1404
+ return new url_1.URL(process.env['GITHUB_SERVER_URL'] ||
1405
+ process.env['GITHUB_URL'] ||
1406
+ 'https://github.com');
1404
1407
}
1405
1408
exports.getServerUrl = getServerUrl;
1406
1409
Original file line number Diff line number Diff line change @@ -20,5 +20,10 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
20
20
}
21
21
22
22
export function getServerUrl ( ) : URL {
23
- return new URL ( process . env [ 'GITHUB_URL' ] || 'https://github.com' )
23
+ // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
24
+ return new URL (
25
+ process . env [ 'GITHUB_SERVER_URL' ] ||
26
+ process . env [ 'GITHUB_URL' ] ||
27
+ 'https://github.com'
28
+ )
24
29
}
You can’t perform that action at this time.
0 commit comments