Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
leopic committed Aug 12, 2024
1 parent eab76d8 commit 365c0b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/actions/time-to-first-review/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ try {
const prs = await fetchPullRequests(repo, token, maxPRs);

let timesToFirstReview = await Promise.all(
prs
.map((pr) => getTimeToFirstReview(pr, repo, token))
.filter((time) => time)
prs.map((pr) => getTimeToFirstReview(pr, repo, token))
);

timesToFirstReview = timesToFirstReview.filter(
(time) => time !== undefined
);

console.log("All times to first review:", timesToFirstReview);
Expand Down

0 comments on commit 365c0b7

Please sign in to comment.