MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / buildDefaultCommitMessage

Function buildDefaultCommitMessage

desktop/project-git/commit-context.ts:37–43  ·  view source on GitHub ↗
(context: { fileCount: number })

Source from the content-addressed store, hash-verified

35}
36
37export function buildDefaultCommitMessage(context: { fileCount: number }) {
38 if (context.fileCount <= 0) {
39 return 'Update workspace'
40 }
41
42 return context.fileCount === 1 ? 'Update 1 file' : `Update ${context.fileCount} files`
43}
44
45export async function prepareCommitMessageContext(
46 projectId: string,

Callers 1

commitProjectChangesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected