find
import type { Codebase } from "#codebase/tcmts/cli/codebase"; import { ContributionError } from "#codebase/tcmts/cli/contributions"; import type { Contribution } from "#codebase/tcmts/store"; export function find(cb: Codebase, id: number): Contribution { const c = cb.store.contribution(id); if (!c) throw new ContributionError(`no contribution #${id}`); return c; }