Fix handling of plurals in statistics
This commit is contained in:
parent
184e7afe93
commit
752a17a932
|
@ -2032,25 +2032,25 @@ class Statistics {
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
_logDeletedIssuesAndPullRequestsLabelsCount() {
|
_logDeletedIssuesAndPullRequestsLabelsCount() {
|
||||||
this._logGroup('Deleted items labels', [
|
this._logGroup('Deleted item labels', [
|
||||||
{
|
{
|
||||||
name: 'Deleted issues labels',
|
name: 'Deleted issue labels',
|
||||||
count: this.deletedIssuesLabelsCount
|
count: this.deletedIssuesLabelsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Deleted PRs labels',
|
name: 'Deleted PR labels',
|
||||||
count: this.deletedPullRequestsLabelsCount
|
count: this.deletedPullRequestsLabelsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
_logDeletedCloseIssuesAndPullRequestsLabelsCount() {
|
_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
|
count: this.deletedCloseIssuesLabelsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Deleted close PRs labels',
|
name: 'Deleted closed PR labels',
|
||||||
count: this.deletedClosePullRequestsLabelsCount
|
count: this.deletedClosePullRequestsLabelsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
@ -2059,25 +2059,25 @@ class Statistics {
|
||||||
this._logCount('Deleted branches', this.deletedBranchesCount);
|
this._logCount('Deleted branches', this.deletedBranchesCount);
|
||||||
}
|
}
|
||||||
_logAddedIssuesAndPullRequestsLabelsCount() {
|
_logAddedIssuesAndPullRequestsLabelsCount() {
|
||||||
this._logGroup('Added items labels', [
|
this._logGroup('Added item labels', [
|
||||||
{
|
{
|
||||||
name: 'Added issues labels',
|
name: 'Added issue labels',
|
||||||
count: this.addedIssuesLabelsCount
|
count: this.addedIssuesLabelsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Added PRs labels',
|
name: 'Added PR labels',
|
||||||
count: this.addedPullRequestsLabelsCount
|
count: this.addedPullRequestsLabelsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
_logAddedIssuesAndPullRequestsCommentsCount() {
|
_logAddedIssuesAndPullRequestsCommentsCount() {
|
||||||
this._logGroup('Added items comments', [
|
this._logGroup('Added item comments', [
|
||||||
{
|
{
|
||||||
name: 'Added issues comments',
|
name: 'Added issue comments',
|
||||||
count: this.addedIssuesCommentsCount
|
count: this.addedIssuesCommentsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Added PRs comments',
|
name: 'Added PR comments',
|
||||||
count: this.addedPullRequestsCommentsCount
|
count: this.addedPullRequestsCommentsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
@ -2086,10 +2086,10 @@ class Statistics {
|
||||||
this._logCount('Fetched items', this.fetchedItemsCount);
|
this._logCount('Fetched items', this.fetchedItemsCount);
|
||||||
}
|
}
|
||||||
_logFetchedItemsEventsCount() {
|
_logFetchedItemsEventsCount() {
|
||||||
this._logCount('Fetched items events', this.fetchedItemsEventsCount);
|
this._logCount('Fetched item events', this.fetchedItemsEventsCount);
|
||||||
}
|
}
|
||||||
_logFetchedItemsCommentsCount() {
|
_logFetchedItemsCommentsCount() {
|
||||||
this._logCount('Fetched items comments', this.fetchedItemsCommentsCount);
|
this._logCount('Fetched item comments', this.fetchedItemsCommentsCount);
|
||||||
}
|
}
|
||||||
_logFetchedPullRequestsCount() {
|
_logFetchedPullRequestsCount() {
|
||||||
this._logCount('Fetched pull requests', this.fetchedPullRequestsCount);
|
this._logCount('Fetched pull requests', this.fetchedPullRequestsCount);
|
||||||
|
|
|
@ -363,26 +363,26 @@ export class Statistics {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logDeletedIssuesAndPullRequestsLabelsCount(): void {
|
private _logDeletedIssuesAndPullRequestsLabelsCount(): void {
|
||||||
this._logGroup('Deleted items labels', [
|
this._logGroup('Deleted item labels', [
|
||||||
{
|
{
|
||||||
name: 'Deleted issues labels',
|
name: 'Deleted issue labels',
|
||||||
count: this.deletedIssuesLabelsCount
|
count: this.deletedIssuesLabelsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Deleted PRs labels',
|
name: 'Deleted PR labels',
|
||||||
count: this.deletedPullRequestsLabelsCount
|
count: this.deletedPullRequestsLabelsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logDeletedCloseIssuesAndPullRequestsLabelsCount(): void {
|
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
|
count: this.deletedCloseIssuesLabelsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Deleted close PRs labels',
|
name: 'Deleted closed PR labels',
|
||||||
count: this.deletedClosePullRequestsLabelsCount
|
count: this.deletedClosePullRequestsLabelsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
@ -393,26 +393,26 @@ export class Statistics {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logAddedIssuesAndPullRequestsLabelsCount(): void {
|
private _logAddedIssuesAndPullRequestsLabelsCount(): void {
|
||||||
this._logGroup('Added items labels', [
|
this._logGroup('Added item labels', [
|
||||||
{
|
{
|
||||||
name: 'Added issues labels',
|
name: 'Added issue labels',
|
||||||
count: this.addedIssuesLabelsCount
|
count: this.addedIssuesLabelsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Added PRs labels',
|
name: 'Added PR labels',
|
||||||
count: this.addedPullRequestsLabelsCount
|
count: this.addedPullRequestsLabelsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logAddedIssuesAndPullRequestsCommentsCount(): void {
|
private _logAddedIssuesAndPullRequestsCommentsCount(): void {
|
||||||
this._logGroup('Added items comments', [
|
this._logGroup('Added item comments', [
|
||||||
{
|
{
|
||||||
name: 'Added issues comments',
|
name: 'Added issue comments',
|
||||||
count: this.addedIssuesCommentsCount
|
count: this.addedIssuesCommentsCount
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Added PRs comments',
|
name: 'Added PR comments',
|
||||||
count: this.addedPullRequestsCommentsCount
|
count: this.addedPullRequestsCommentsCount
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
@ -423,11 +423,11 @@ export class Statistics {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logFetchedItemsEventsCount(): void {
|
private _logFetchedItemsEventsCount(): void {
|
||||||
this._logCount('Fetched items events', this.fetchedItemsEventsCount);
|
this._logCount('Fetched item events', this.fetchedItemsEventsCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logFetchedItemsCommentsCount(): void {
|
private _logFetchedItemsCommentsCount(): void {
|
||||||
this._logCount('Fetched items comments', this.fetchedItemsCommentsCount);
|
this._logCount('Fetched item comments', this.fetchedItemsCommentsCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
private _logFetchedPullRequestsCount(): void {
|
private _logFetchedPullRequestsCount(): void {
|
||||||
|
|
Loading…
Reference in New Issue