MCPcopy Index your code
hub / github.com/RomanHotsiy/commitgpt / assertTempValid

Function assertTempValid

config_storage.ts:54–59  ·  view source on GitHub ↗
(t: string)

Source from the content-addressed store, hash-verified

52}
53
54function assertTempValid(t: string) {
55 // should include {{diff}}
56 if (!t.includes("{{diff}}")) {
57 throw new Error("Template must include {{diff}}");
58 }
59}
60
61export function loadPromptTemplate(): string {
62 if (existsSync(LOCAL_CONFIG_PATH)) {

Callers 1

loadPromptTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected