@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 12 lines 519 Bytes
Raw
1 import type { ChangeRequestTerminology } from "@t3tools/client-runtime/source-control-clients";
2
3 /** Selects the noun in translated sentences, so each language writes the whole sentence per host term. */
4 type ChangeRequestTermKind = "mr" | "cr" | "pr";
5
6 export function changeRequestTermKind(
7 terminology: Pick<ChangeRequestTerminology, "singular">,
8 ): ChangeRequestTermKind {
9 if (terminology.singular === "merge request") return "mr";
10 if (terminology.singular === "change request") return "cr";
11 return "pr";
12 }