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

Method generateCommitMessage

out/cli.cjs:67049–67063  ·  view source on GitHub ↗
(_messages)

Source from the content-addressed store, hash-verified

67047 "commit-message",
67048 "prompt-module-commitlint-config"
67049];
67050var TestAi = class {
67051 // ---
67052 constructor(mockType) {
67053 this.mockType = mockType;
67054 }
67055 async generateCommitMessage(_messages) {
67056 switch (this.mockType) {
67057 case "commit-message":
67058 return "fix(testAi.ts): test commit message";
67059 case "prompt-module-commitlint-config":
67060 return `{
67061 "localLanguage": "english",
67062 "commitFix": "fix(server): Change 'port' variable to uppercase 'PORT'",
67063 "commitFeat": "feat(server): Allow server to listen on a port specified through environment variable",
67064 "commitDescription": "Change 'port' variable to uppercase 'PORT'. Allow server to listen on a port specified through environment variable."
67065}`;
67066 default:

Callers

nothing calls this directly

Calls 8

postMethod · 0.80
filterMethod · 0.80
getGenerativeModelMethod · 0.80
generateContentMethod · 0.80
removeContentTagsFunction · 0.70
normalizeEngineErrorFunction · 0.70
extractGeminiTextFunction · 0.70
sliceMethod · 0.45

Tested by

no test coverage detected