fix: Use the v1
api as v3
is not available on Forgejo.
This commit is contained in:
parent
16e0059bfd
commit
9990329c4e
1 changed files with 2 additions and 2 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -1284,7 +1284,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';
|
||||||
|
@ -36020,4 +36020,4 @@ function validateConcurrency(concurrency) {
|
||||||
/******/ module.exports = __webpack_exports__;
|
/******/ module.exports = __webpack_exports__;
|
||||||
/******/
|
/******/
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue