mirror of
https://github.com/ingress-it-solutions/gitea-code-review-action.git
synced 2025-04-20 11:06:47 +00:00
Fixed issue with Comment on Gitea
This commit is contained in:
parent
c6fb986f1e
commit
9c01da5f63
1 changed files with 6 additions and 0 deletions
6
index.js
6
index.js
|
@ -175,10 +175,16 @@ async function run() {
|
||||||
const url = `${githubBaseURL}/api/v1/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 };
|
||||||
|
core.debug(`url: ${url}`);
|
||||||
|
core.debug(`headers: ${headers}`);
|
||||||
|
core.debug(`data: ${data}`);
|
||||||
|
|
||||||
await axios.post(url, data, { headers });
|
await axios.post(url, data, { headers });
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
core.debug(error.line);
|
||||||
|
core.debug(error.content);
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue