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)}`)