Merge pull request #6 from ingress-it-solutions/dev

Fixed issue with comment
This commit is contained in:
vandanafuletra 2023-04-05 23:18:37 +05:30 committed by GitHub
commit 5dc467894a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View file

@ -25,8 +25,7 @@ inputs:
PROMPT_TEMPLATE: PROMPT_TEMPLATE:
description: 'The template for the FULL_REVIEW_COMMENT prompt.' description: 'The template for the FULL_REVIEW_COMMENT prompt.'
default: 'Please analyze the pull request''s code and inform me whether it requires optimization, and provide an explanation for your decision: default: 'Please analyze the pull request''s code and inform me whether it requires optimization, and provide an explanation for your decision:
SHA_ID:
description: 'The
\`\`\` \`\`\`
${code} ${code}

2
dist/index.js vendored
View file

@ -39301,7 +39301,7 @@ async function run() {
const octokit = github.getOctokit(githubToken, { const octokit = github.getOctokit(githubToken, {
baseUrl: githubBaseURL baseUrl: githubBaseURL
}); });
const commentUrl = `${githubBaseURL}/${repoOwner}/${repoName}/pulls/${prNumber}`; const commentUrl = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}`;
var response = await axios.post(commentUrl, { var response = await axios.post(commentUrl, {
body: answerTemplate.replace('${answer}', answer), body: answerTemplate.replace('${answer}', answer),
headers: { headers: {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -115,7 +115,7 @@ async function run() {
const octokit = github.getOctokit(githubToken, { const octokit = github.getOctokit(githubToken, {
baseUrl: githubBaseURL baseUrl: githubBaseURL
}); });
const commentUrl = `${githubBaseURL}/${repoOwner}/${repoName}/pulls/${prNumber}`; const commentUrl = `${githubBaseURL}/repos/${repoOwner}/${repoName}/pulls/${prNumber}`;
var response = await axios.post(commentUrl, { var response = await axios.post(commentUrl, {
body: answerTemplate.replace('${answer}', answer), body: answerTemplate.replace('${answer}', answer),
headers: { headers: {