fix: Use the v1
api as v3
is not available on Forgejo.
This commit is contained in:
parent
49cf7e9854
commit
1f2b960401
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -1286,7 +1286,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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user