This commit is contained in:
Michael Shick 2019-11-25 13:58:50 -05:00
parent 93cf881725
commit 02dd64dcc6
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61

View file

@ -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) {