Skip to content

Commit acd5c60

Browse files
committed
chore: add @wei/pluralize for logging
1 parent f4c16e2 commit acd5c60

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@probot/pino": "npm:@probot/pino@^2.5.0",
1818
"@std/assert": "jsr:@std/assert@1",
1919
"@std/http": "jsr:@std/http@1",
20+
"@wei/pluralize": "jsr:@wei/pluralize@^8.0.2",
2021
"@wei/probot-scheduler": "jsr:@wei/[email protected]",
2122
"bullmq": "npm:bullmq@^5.26.2",
2223
"express": "npm:express@^4.21.1",

deno.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/processor/pull.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { type Logger, ProbotOctokit } from "probot";
2+
import pluralize from "@wei/pluralize";
23
import {
34
type PullConfig,
45
pullConfigSchema,
@@ -52,7 +53,7 @@ export class Pull {
5253
async routineCheck(): Promise<void> {
5354
this.logger.info(
5455
{ config: this.config },
55-
`Routine Check - ${this.config.rules.length} rules`,
56+
`Routine Check - ${pluralize("rule", this.config.rules.length, true)}`,
5657
);
5758

5859
for (const rule of this.config.rules) {

0 commit comments

Comments
 (0)