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

This commit is contained in:
Jiří Štefka 2024-12-15 02:21:15 +01:00
parent 16e0059bfd
commit 9990329c4e
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE

4
dist/index.js vendored
View file

@ -1284,7 +1284,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';
@ -36020,4 +36020,4 @@ function validateConcurrency(concurrency) {
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;