diff --git a/dist/index.js b/dist/index.js index c089457..ed7b971 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29005,7 +29005,7 @@ async function getCommentContent(octokit, octokitContext, threshold) { issue_number: prNumber, })).data; const existingCommentUrl = (0, getExistingCommentUrl_1.getExistingCommentUrl)(comments); - if (!existingCommentUrl) { + if (existingCommentUrl) { console.log('a recommending comment has already been posted: ', existingCommentUrl); return null; } diff --git a/src/comments/getCommentContent.ts b/src/comments/getCommentContent.ts index c01d456..406bf96 100644 --- a/src/comments/getCommentContent.ts +++ b/src/comments/getCommentContent.ts @@ -23,7 +23,7 @@ export async function getCommentContent( ).data; const existingCommentUrl = getExistingCommentUrl(comments); - if (!existingCommentUrl) { + if (existingCommentUrl) { console.log( 'a recommending comment has already been posted: ', existingCommentUrl,