MCPcopy Create free account
hub / github.com/driangle/taskmd / buildCommitMessage

Function buildCommitMessage

apps/cli/internal/cli/commit_msg.go:123–128  ·  view source on GitHub ↗
(tasks []*model.Task, commitType string, includeBody, short bool)

Source from the content-addressed store, hash-verified

121}
122
123func buildCommitMessage(tasks []*model.Task, commitType string, includeBody, short bool) string {
124 if len(tasks) == 1 {
125 return buildSingleTaskMessage(tasks[0], commitType, includeBody, short)
126 }
127 return buildMultiTaskMessage(tasks, commitType, includeBody, short)
128}
129
130func buildSingleTaskMessage(task *model.Task, commitType string, includeBody, short bool) string {
131 subject := formatSubjectLine(task, commitType)

Callers 2

runCommitMsgFunction · 0.85
buildMessageFromChangesFunction · 0.85

Calls 2

buildSingleTaskMessageFunction · 0.85
buildMultiTaskMessageFunction · 0.85

Tested by

no test coverage detected