MCPcopy
hub / github.com/di-sukharev/opencommit / inferPromptsFromCommitlintConfig

Function inferPromptsFromCommitlintConfig

out/cli.cjs:84998–85004  ·  view source on GitHub ↗
(config8)

Source from the content-addressed store, hash-verified

84996 if (severity === import_types.RuleConfigSeverity.Disabled) return null;
84997 const promptFn = rulesPrompts[ruleName];
84998 if (promptFn) {
84999 return promptFn(applicable, value, prompt);
85000 }
85001 ce(`${source_default.red("\u2716")} No prompt handler for rule "${ruleName}".`);
85002 return `Please manualy set the prompt for rule "${ruleName}".`;
85003};
85004var inferPromptsFromCommitlintConfig = (config8) => {
85005 const { rules, prompt } = config8;
85006 if (!rules) return [];
85007 return Object.keys(rules).map(

Callers 1

Calls 3

filterMethod · 0.80
getPromptFunction · 0.70
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…