diff --git a/src/main.js b/src/main.js index bacbce2..ed27931 100644 --- a/src/main.js +++ b/src/main.js @@ -14,6 +14,7 @@ async function run() { repo, pull_number }).then((res) => { + console.log(`res: ${JSON.stringify(res, undefined, 2)}`) requestedReviewers = res.data.users.map(u => u.login); }) @@ -31,8 +32,7 @@ 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 && !reviewRequests.includes(reviewer))) { - + if (!reviews.find(r => r.reviewer === reviewer && !requestedReviewers.includes(reviewer))) { reviews.push({ reviewer: reviewer, state: review.state }) } });