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