mirror of
https://github.com/mshick/add-pr-comment.git
synced 2026-01-03 15:09:44 +11:00
trigger
This commit is contained in:
parent
93cf881725
commit
02dd64dcc6
1 changed files with 8 additions and 8 deletions
16
index.js
16
index.js
|
|
@ -26,10 +26,10 @@ async function run() {
|
|||
if (allowRepeats === false) {
|
||||
core.debug(`repeat comments are disallowed, checking for existing`);
|
||||
|
||||
const { data: comments } = await octokit.pulls.listComments({
|
||||
const { data: comments } = await octokit.issues.listComments({
|
||||
owner,
|
||||
repo,
|
||||
pull_number: pullNumber
|
||||
issue_number: pullNumber
|
||||
});
|
||||
|
||||
console.log(comments);
|
||||
|
|
@ -41,12 +41,12 @@ async function run() {
|
|||
// exit(0)
|
||||
// end
|
||||
|
||||
await octokit.issues.createComment({
|
||||
owner,
|
||||
repo,
|
||||
issue_number: pullNumber,
|
||||
body: msg
|
||||
});
|
||||
// await octokit.issues.createComment({
|
||||
// owner,
|
||||
// repo,
|
||||
// issue_number: pullNumber,
|
||||
// body: msg
|
||||
// });
|
||||
|
||||
core.debug(`DONE`);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue