Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2020-05-18 13:05:15 -0400
committerGitHub <noreply@github.com>2020-05-18 13:05:15 -0400
commit668d86fc619a391e755581af86c427e216494727 (patch)
treecd17508c967f8f54b55da257ab9de51bec3cc243 /dist
parente55727d418e99c52db29fa5e822f0eb64ce9b1ca (diff)
switch GITHUB_URL to GITHUB_SERVER_URL (#248)
Diffstat (limited to 'dist')
-rw-r--r--dist/index.js5
1 files changed, 4 insertions, 1 deletions
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;