From 907115201f8b8db70129068246406499a2a3adb3 Mon Sep 17 00:00:00 2001 From: Leo Picado Date: Mon, 12 Aug 2024 13:16:44 +0200 Subject: [PATCH] wrong place for the filter --- .github/actions/time-to-first-review/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/time-to-first-review/index.js b/.github/actions/time-to-first-review/index.js index 0a494cd..7229a3b 100644 --- a/.github/actions/time-to-first-review/index.js +++ b/.github/actions/time-to-first-review/index.js @@ -42,8 +42,10 @@ 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)) + .filter((time) => time) + ); if (timesToFirstReview.length > 0) { const total = timesToFirstReview.reduce((sum, value) => sum + value, 0);