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 88ed63ce14
commit 298f9340a0

2
dist/index.js vendored
View File

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