From dd1b9602776ab4569a07a9669df7762b3d148969 Mon Sep 17 00:00:00 2001 From: Bhavik MacBook PRO 16 Date: Sun, 23 Apr 2023 16:53:30 +0530 Subject: [PATCH 1/2] Added code for Gitea --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aba77b3..8a2b8fe 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # OpenAI Code Review -A Gitea Action that uses OpenAI to analyze code in pull request comments. +A Gitea Action that uses OpenAI to analyze code in pull request comments. Test message ## Usage From afa79b554ea17ef429f28d227aa3c8366e014619 Mon Sep 17 00:00:00 2001 From: Bhavik MacBook PRO 16 Date: Sun, 23 Apr 2023 17:02:51 +0530 Subject: [PATCH 2/2] Added code for Gitea --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 400ff4a..68131ca 100644 --- a/index.js +++ b/index.js @@ -54,7 +54,7 @@ async function run() { if(sourceAt === 'github') { - const url = `${githubBaseURL}/api/v1/repos/${repoOwner}/${repoName}/pulls/${prNumber}/diff`; + const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}/diff`; console.log(`diff url: ${url}`); var response = await axios.get(url, { headers: {