From 9c01da5f6346cca1725c1dc5052a8d358ca85535 Mon Sep 17 00:00:00 2001 From: Bhavik MacBook PRO 16 Date: Sun, 23 Apr 2023 19:02:18 +0530 Subject: [PATCH] Fixed issue with Comment on Gitea --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index 8c60b13..d04a01a 100644 --- a/index.js +++ b/index.js @@ -175,10 +175,16 @@ async function run() { const url = `${githubBaseURL}/api/v1/repos/${repoOwner}/${repoName}/issues/${prNumber}/comments`; const headers = { 'Authorization': `token ${githubToken}` }; const data = { 'body': comment }; + core.debug(`url: ${url}`); + core.debug(`headers: ${headers}`); + core.debug(`data: ${data}`); + await axios.post(url, data, { headers }); } } catch (error) { + core.debug(error.line); + core.debug(error.content); core.setFailed(error.message); } }