use proper gitea api
Some checks failed
CI / build (push) Failing after 1m13s
CI / test (built) (push) Has been skipped
CI / test (committed) (push) Has been skipped
CI / commentTestSuiteHelp (push) Has been skipped
CI / package (push) Has been skipped

This commit is contained in:
2025-05-13 09:17:55 +02:00
parent 889dce9eab
commit 298a4222fa

2
dist/index.js vendored
View File

@@ -1328,7 +1328,7 @@ class GitHubHelper {
options.auth = `${token}`; options.auth = `${token}`;
} }
if (githubServerHostname !== 'github.com') { if (githubServerHostname !== 'github.com') {
options.baseUrl = `https://${githubServerHostname}/api/v3`; options.baseUrl = `https://${githubServerHostname}/api/v1`;
} }
else { else {
options.baseUrl = 'https://api.github.com'; options.baseUrl = 'https://api.github.com';