The best way to control Claude Code, Codex and more from any computer or phone
| 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 | } |