fix: Use the v1 api as v3 is not available on Forgejo.

This commit is contained in:
jiriks74 2024-12-15 02:37:18 +01:00 committed by ahuston-0
parent 49cf7e9854
commit 1f2b960401
No known key found for this signature in database
GPG Key ID: 47940175096C1330

2
dist/index.js vendored
View File

@ -1286,7 +1286,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';