Skip to content

Commit

Permalink
chore: add @wei/pluralize for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wei committed Nov 19, 2024
1 parent f4c16e2 commit acd5c60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@probot/pino": "npm:@probot/pino@^2.5.0",
"@std/assert": "jsr:@std/assert@1",
"@std/http": "jsr:@std/http@1",
"@wei/pluralize": "jsr:@wei/pluralize@^8.0.2",
"@wei/probot-scheduler": "jsr:@wei/probot-scheduler@0.1.0-alpha.15",
"bullmq": "npm:bullmq@^5.26.2",
"express": "npm:express@^4.21.1",
Expand Down
4 changes: 3 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/processor/pull.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Logger, ProbotOctokit } from "probot";
import pluralize from "@wei/pluralize";
import {
type PullConfig,
pullConfigSchema,
Expand Down Expand Up @@ -52,7 +53,7 @@ export class Pull {
async routineCheck(): Promise<void> {
this.logger.info(
{ config: this.config },
`Routine Check - ${this.config.rules.length} rules`,
`Routine Check - ${pluralize("rule", this.config.rules.length, true)}`,
);

for (const rule of this.config.rules) {
Expand Down

0 comments on commit acd5c60

Please sign in to comment.