From 1f2b960401db67d07669f343e0fae725f12e4adb Mon Sep 17 00:00:00 2001 From: jiriks74 Date: Sun, 15 Dec 2024 02:37:18 +0100 Subject: [PATCH] fix: Use the `v1` api as `v3` is not available on Forgejo. --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 123c42f..b5c7393 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1286,7 +1286,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';