Skip to content

Commit

Permalink
wip: reverse is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
wassimk committed Jun 3, 2024
1 parent 057ab6c commit c638700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function run() {
let filteredPrReviews = prReviews.data.filter(review => review.state !== "COMMENTED");
console.log(`filteredPrReviews: ${JSON.stringify(filteredPrReviews, undefined, 2)}`)

filteredPrReviews.reverse().forEach(review => {
filteredPrReviews.forEach(review => {
const reviewer = review.user.login
if (!reviews.find(r => r.reviewer === reviewer)) {
if (!requestedReviewers.includes(reviewer)) {
Expand Down

0 comments on commit c638700

Please sign in to comment.