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) {
|
if (allowRepeats === false) {
|
||||||
core.debug(`repeat comments are disallowed, checking for existing`);
|
core.debug(`repeat comments are disallowed, checking for existing`);
|
||||||
|
|
||||||
const { data: comments } = await octokit.pulls.listComments({
|
const { data: comments } = await octokit.issues.listComments({
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
pull_number: pullNumber
|
issue_number: pullNumber
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(comments);
|
console.log(comments);
|
||||||
|
|
@ -41,12 +41,12 @@ async function run() {
|
||||||
// exit(0)
|
// exit(0)
|
||||||
// end
|
// end
|
||||||
|
|
||||||
await octokit.issues.createComment({
|
// await octokit.issues.createComment({
|
||||||
owner,
|
// owner,
|
||||||
repo,
|
// repo,
|
||||||
issue_number: pullNumber,
|
// issue_number: pullNumber,
|
||||||
body: msg
|
// body: msg
|
||||||
});
|
// });
|
||||||
|
|
||||||
core.debug(`DONE`);
|
core.debug(`DONE`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue