From 6ce81f04b4c2ed2dbd3a5a3f966fcb52e66a6a3b Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Mon, 26 Feb 2024 12:26:28 +0100 Subject: [PATCH] renamed top reviewers method Renamed from getMonthlyReviewers to getTopMonthlyReviewers --- src/report/pullRequests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/report/pullRequests.ts b/src/report/pullRequests.ts index 2a002cc..35616d2 100644 --- a/src/report/pullRequests.ts +++ b/src/report/pullRequests.ts @@ -45,7 +45,7 @@ export class PullRequestAnalytics { const monthlyAverages = this.generateMonthlyAverages(prs); const reviewList = prList.flatMap((pr) => pr.reviews.nodes); - const reviewers = this.getMonthlyReviewers(reviewList); + const reviewers = this.getTopMonthlyReviewers(reviewList); const topReviewer = this.getTopReviewer(reviewList); @@ -161,7 +161,7 @@ export class PullRequestAnalytics { } /** Returns the reviewer who gave the biggest amount of reviews per month */ - getMonthlyReviewers( + getTopMonthlyReviewers( reviews: PullRequestNode["reviews"]["nodes"], ): PullRequestMetrics["reviewers"] { if (reviews.length === 0) {