diff --git a/index.js b/index.js index 53d0d5f..c4cc7d5 100644 --- a/index.js +++ b/index.js @@ -172,7 +172,7 @@ async function run() { const comment = answerTemplate.replace('${answer}', answer); // Make a POST request to create a comment on a pull request const createCommentOnPullRequest = async (repoOwner, repoName, prNumber, comment) => { - const url = `${githubBaseURL}/repos/${repoOwner}/${repoName}/issues/${prNumber}/comments`; + const url = `${githubBaseURL}/api/v1/repos/${repoOwner}/${repoName}/issues/${prNumber}/comments`; const headers = { 'Authorization': `token ${githubToken}` }; const data = { 'body': comment }; await axios.post(url, data, { headers });