From 125f11a7ad9912942b06de514648044a574a27e1 Mon Sep 17 00:00:00 2001 From: Tomoya Kashifuku Date: Wed, 20 Mar 2024 23:57:50 +0900 Subject: [PATCH] fix logic --- dist/index.js | 2 +- src/comments/getCommentContent.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,