From 365c0b7f40410383b06cd67af39363d150c07325 Mon Sep 17 00:00:00 2001 From: Leo Picado Date: Mon, 12 Aug 2024 13:19:20 +0200 Subject: [PATCH] again --- .github/actions/time-to-first-review/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/actions/time-to-first-review/index.js b/.github/actions/time-to-first-review/index.js index ef327fe..b0e2fb3 100644 --- a/.github/actions/time-to-first-review/index.js +++ b/.github/actions/time-to-first-review/index.js @@ -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);