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

Function formatSubjectLine

apps/cli/internal/cli/commit_msg.go:181–188  ·  view source on GitHub ↗
(task *model.Task, commitType string)

Source from the content-addressed store, hash-verified

179}
180
181func formatSubjectLine(task *model.Task, commitType string) string {
182 title := lowerFirst(task.Title)
183 group := task.GetGroup()
184 if group != "" {
185 return fmt.Sprintf("%s(%s): %s (task %s)", commitType, group, title, task.ID)
186 }
187 return fmt.Sprintf("%s: %s (task %s)", commitType, title, task.ID)
188}
189
190func extractCompletedSubtasks(body string) []string {
191 var subtasks []string

Callers 1

buildSingleTaskMessageFunction · 0.85

Calls 2

lowerFirstFunction · 0.85
GetGroupMethod · 0.80

Tested by

no test coverage detected