fix: Use the v1
api as v3
is not available on Forgejo.
This commit is contained in:
parent
16e0059bfd
commit
9791a4f146
1 changed files with 1 additions and 1 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue