From 9990329c4e746119d32e6f367372a18834a0a0eb Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sun, 15 Dec 2024 02:21:15 +0100 Subject: [PATCH] fix: Use the `v1` api as `v3` is not available on Forgejo. --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index b555e94..a2e36bc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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__; /******/ /******/ })() -; \ No newline at end of file +;