commentOn
import type { Codebase } from "#codebase/tcmts/cli/codebase"; import { ContributionError, find } from "#codebase/tcmts/cli/contributions"; export function commentOn( cb: Codebase, id: number, c: { author: string; body: string; about?: string | null }, ): number { find(cb, id); if (!c.body.trim()) throw new ContributionError("an empty comment"); return cb.store.addComment(id, c); }