mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-20 19:16:47 +00:00
Merge pull request #6 from ingress-it-solutions/dev
Fixed issue with comment
This commit is contained in:
commit
5dc467894a
4 changed files with 4 additions and 5 deletions
|
@ -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
2
dist/index.js
vendored
|
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
index.js
2
index.js
|
@ -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: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue