gdfhdfgh dfghdfgh dfgh

This commit is contained in:
Michael Schmidt
2023-07-10 15:14:11 +02:00
parent ccbde630fa
commit 67a3a54916
2 changed files with 7 additions and 7 deletions

8
dist/index.js vendored
View File

@@ -36008,14 +36008,14 @@ function getFetchUrl(settings) {
return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`; return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
} }
// "origin" is SCHEME://HOSTNAME[:PORT] // "origin" is SCHEME://HOSTNAME[:PORT]
return `${serviceUrl.origin}/gitea/${encodedOwner}/${encodedName}`; return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
} }
exports.getFetchUrl = getFetchUrl; exports.getFetchUrl = getFetchUrl;
function getServerUrl() { function getServerUrl() {
// todo: remove GITHUB_URL after support for GHES Alpha is no longer needed // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
return new url_1.URL(process.env['GITHUB_SERVER_URL'] || return new url_1.URL(process.env['GITHUB_SERVER_URL'] + '/gitea' ||
process.env['GITHUB_URL'] || 0 ||
'https://github.com'); 0);
} }
exports.getServerUrl = getServerUrl; exports.getServerUrl = getServerUrl;

View File

@@ -16,14 +16,14 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
} }
// "origin" is SCHEME://HOSTNAME[:PORT] // "origin" is SCHEME://HOSTNAME[:PORT]
return `${serviceUrl.origin}/gitea/${encodedOwner}/${encodedName}` return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`
} }
export function getServerUrl(): URL { export function getServerUrl(): URL {
// todo: remove GITHUB_URL after support for GHES Alpha is no longer needed // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
return new URL( return new URL(
process.env['GITHUB_SERVER_URL'] || process.env['GITHUB_SERVER_URL'] + '/gitea' ||
process.env['GITHUB_URL'] || process.env['GITHUB_URL'] + '/gitea' ||
'https://github.com' 'https://github.com'
) )
} }