Skip to content

Commit

Permalink
Automated build of 8db2801
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 3, 2024
1 parent 8db2801 commit f84d8d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`)
Expand Down

0 comments on commit f84d8d4

Please sign in to comment.