Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
lvegerano committed Aug 8, 2022
1 parent 1209399 commit b996d56
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9085,9 +9085,17 @@ function getApprovals(client, prNumber, owner, repo) {
repo,
pull_number: prNumber,
});
return (reviews || [])
.filter((review) => review.state === "APPROVED")
.map((filteredReview) => { var _a; return (_a = filteredReview.user) === null || _a === void 0 ? void 0 : _a.login; });
const reviewers = new Set();
(reviews || []).forEach((review) => {
var _a, _b;
if (review.state === "APPROVED") {
reviewers.add((_a = review.user) === null || _a === void 0 ? void 0 : _a.login);
}
else {
reviewers.delete((_b = review.user) === null || _b === void 0 ? void 0 : _b.login);
}
});
return [...reviewers];
});
}

Expand Down

0 comments on commit b996d56

Please sign in to comment.