From f84d8d4b43553809d9200129d2ea5072b75d1e69 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 3 Jun 2024 14:24:37 +0000 Subject: [PATCH] Automated build of 8db2801cbb00196e858560a3dc9a0ba35d602fcf --- dist/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a44ee31..aa62f60 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13667,8 +13667,10 @@ async function run() { let filteredPrReviews = prReviews.data.reverse().filter(review => review.state !== "COMMENTED"); filteredPrReviews.forEach(review => { const reviewer = review.user.login - if (!reviews.find(r => r.reviewer === reviewer && !requestedReviewers.includes(reviewer))) { - reviews.push({ reviewer: reviewer, state: review.state }) + if (!reviews.find(r => r.reviewer === reviewer)) { + if (!requestedReviewers.includes(reviewer)) { + reviews.push({ reviewer: reviewer, state: review.state }) + } } }); console.log(`reviews: ${JSON.stringify(reviews, undefined, 2)}`)