mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-20 03:06:44 +00:00
Fixed issue with Comment on Gitea
This commit is contained in:
parent
7a961911b3
commit
8543fc0e11
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -172,7 +172,7 @@ async function run() {
|
||||||
const comment = answerTemplate.replace('${answer}', answer);
|
const comment = answerTemplate.replace('${answer}', answer);
|
||||||
// Make a POST request to create a comment on a pull request
|
// Make a POST request to create a comment on a pull request
|
||||||
const createCommentOnPullRequest = async (repoOwner, repoName, prNumber, comment) => {
|
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 headers = { 'Authorization': `token ${githubToken}` };
|
||||||
const data = { 'body': comment };
|
const data = { 'body': comment };
|
||||||
await axios.post(url, data, { headers });
|
await axios.post(url, data, { headers });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue