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 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: {