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 GitHub Actions
parent f689536846
commit daaea7551c

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';