This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

ogre: pluralize files changed count in PR og image

author
Kainoa Kanter
committer
Anirudh Oppiliappan
date (Jul 31, 2026, 10:44 AM +0300) commit f7f09c9f parent 50f4de1f change-id ktukwomk
+4 -3
+2 -1
ogre/src/components/cards/pull-request.tsx
··· 5 5 import { FooterStats } from "../shared/footer-stats"; 6 6 import { FileDiff, RefreshCw } from "../../icons/lucide"; 7 7 import { COLORS, TYPOGRAPHY } from "../shared/constants"; 8 + import { pluralize } from "../../lib/pluralize"; 8 9 import type { PullRequestCardData } from "../../validation"; 9 10 10 11 interface FilesChangedPillProps { ··· 33 34 }}> 34 35 <FileDiff size={34} color="#202020" /> 35 36 <span style={{ ...TYPOGRAPHY.body, color: "#202020" }}> 36 - {filesChanged} files 37 + {filesChanged} {pluralize("file", filesChanged)} 37 38 </span> 38 39 </Row> 39 40 <Row style={{ gap: 0 }}>
+1 -2
ogre/src/components/shared/metrics.tsx
··· 6 6 CircleDot, 7 7 type LucideIcon, 8 8 } from "../../icons/lucide"; 9 + import { pluralize } from "../../lib/pluralize"; 9 10 10 11 interface MetricsProps { 11 12 stars: number; 12 13 pulls: number; 13 14 issues: number; 14 15 } 15 - 16 - const pluralize = (label: string, n: number) => (`${label}${n === 1 ? "" : "s"}`); 17 16 18 17 // Display stars, pulls, issues with Lucide icons 19 18 export function Metrics({ stars, pulls, issues }: MetricsProps) {
+1
ogre/src/lib/pluralize.ts
··· 1 + export const pluralize = (label: string, n: number) => (`${label}${n === 1 ? "" : "s"}`);