From 752a17a93298a38dee8d433ae78fb375f4f3dbb0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 14 Aug 2023 23:13:15 -0400 Subject: [PATCH] Fix handling of plurals in statistics --- dist/index.js | 28 ++++++++++++++-------------- src/classes/statistics.ts | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/dist/index.js b/dist/index.js index 343c8313..c01aeb33 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2032,25 +2032,25 @@ class Statistics { ]); } _logDeletedIssuesAndPullRequestsLabelsCount() { - this._logGroup('Deleted items labels', [ + this._logGroup('Deleted item labels', [ { - name: 'Deleted issues labels', + name: 'Deleted issue labels', count: this.deletedIssuesLabelsCount }, { - name: 'Deleted PRs labels', + name: 'Deleted PR labels', count: this.deletedPullRequestsLabelsCount } ]); } _logDeletedCloseIssuesAndPullRequestsLabelsCount() { - this._logGroup('Deleted close items labels', [ + this._logGroup('Deleted closed item labels', [ { - name: 'Deleted close issues labels', + name: 'Deleted closed issue labels', count: this.deletedCloseIssuesLabelsCount }, { - name: 'Deleted close PRs labels', + name: 'Deleted closed PR labels', count: this.deletedClosePullRequestsLabelsCount } ]); @@ -2059,25 +2059,25 @@ class Statistics { this._logCount('Deleted branches', this.deletedBranchesCount); } _logAddedIssuesAndPullRequestsLabelsCount() { - this._logGroup('Added items labels', [ + this._logGroup('Added item labels', [ { - name: 'Added issues labels', + name: 'Added issue labels', count: this.addedIssuesLabelsCount }, { - name: 'Added PRs labels', + name: 'Added PR labels', count: this.addedPullRequestsLabelsCount } ]); } _logAddedIssuesAndPullRequestsCommentsCount() { - this._logGroup('Added items comments', [ + this._logGroup('Added item comments', [ { - name: 'Added issues comments', + name: 'Added issue comments', count: this.addedIssuesCommentsCount }, { - name: 'Added PRs comments', + name: 'Added PR comments', count: this.addedPullRequestsCommentsCount } ]); @@ -2086,10 +2086,10 @@ class Statistics { this._logCount('Fetched items', this.fetchedItemsCount); } _logFetchedItemsEventsCount() { - this._logCount('Fetched items events', this.fetchedItemsEventsCount); + this._logCount('Fetched item events', this.fetchedItemsEventsCount); } _logFetchedItemsCommentsCount() { - this._logCount('Fetched items comments', this.fetchedItemsCommentsCount); + this._logCount('Fetched item comments', this.fetchedItemsCommentsCount); } _logFetchedPullRequestsCount() { this._logCount('Fetched pull requests', this.fetchedPullRequestsCount); diff --git a/src/classes/statistics.ts b/src/classes/statistics.ts index 321ea70d..6d6c2c38 100644 --- a/src/classes/statistics.ts +++ b/src/classes/statistics.ts @@ -363,26 +363,26 @@ export class Statistics { } private _logDeletedIssuesAndPullRequestsLabelsCount(): void { - this._logGroup('Deleted items labels', [ + this._logGroup('Deleted item labels', [ { - name: 'Deleted issues labels', + name: 'Deleted issue labels', count: this.deletedIssuesLabelsCount }, { - name: 'Deleted PRs labels', + name: 'Deleted PR labels', count: this.deletedPullRequestsLabelsCount } ]); } private _logDeletedCloseIssuesAndPullRequestsLabelsCount(): void { - this._logGroup('Deleted close items labels', [ + this._logGroup('Deleted closed item labels', [ { - name: 'Deleted close issues labels', + name: 'Deleted closed issue labels', count: this.deletedCloseIssuesLabelsCount }, { - name: 'Deleted close PRs labels', + name: 'Deleted closed PR labels', count: this.deletedClosePullRequestsLabelsCount } ]); @@ -393,26 +393,26 @@ export class Statistics { } private _logAddedIssuesAndPullRequestsLabelsCount(): void { - this._logGroup('Added items labels', [ + this._logGroup('Added item labels', [ { - name: 'Added issues labels', + name: 'Added issue labels', count: this.addedIssuesLabelsCount }, { - name: 'Added PRs labels', + name: 'Added PR labels', count: this.addedPullRequestsLabelsCount } ]); } private _logAddedIssuesAndPullRequestsCommentsCount(): void { - this._logGroup('Added items comments', [ + this._logGroup('Added item comments', [ { - name: 'Added issues comments', + name: 'Added issue comments', count: this.addedIssuesCommentsCount }, { - name: 'Added PRs comments', + name: 'Added PR comments', count: this.addedPullRequestsCommentsCount } ]); @@ -423,11 +423,11 @@ export class Statistics { } private _logFetchedItemsEventsCount(): void { - this._logCount('Fetched items events', this.fetchedItemsEventsCount); + this._logCount('Fetched item events', this.fetchedItemsEventsCount); } private _logFetchedItemsCommentsCount(): void { - this._logCount('Fetched items comments', this.fetchedItemsCommentsCount); + this._logCount('Fetched item comments', this.fetchedItemsCommentsCount); } private _logFetchedPullRequestsCount(): void {