Skip to content

Commit

Permalink
renamed top reviewers method
Browse files Browse the repository at this point in the history
Renamed from getMonthlyReviewers to getTopMonthlyReviewers
  • Loading branch information
Bullrich committed Feb 26, 2024
1 parent 1c836ec commit 6ce81f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/report/pullRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 6ce81f0

Please sign in to comment.