switch GITHUB_URL to GITHUB_SERVER_URL (#248)

This commit is contained in:
eric sciple authored and GitHub committed 2020-05-18 13:05:15 -04:00
1 parent ac455590d1
commit 7523e23789
2 files changed
+10 -2

No files matched your search

+6 -1
View File
@@ -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'
)
}