From 668d86fc619a391e755581af86c427e216494727 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Mon, 18 May 2020 13:05:15 -0400 Subject: switch GITHUB_URL to GITHUB_SERVER_URL (#248) --- dist/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dist') diff --git a/dist/index.js b/dist/index.js index 2369bfc..0074e0a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; -- cgit v1.2.3