MCPcopy
hub / github.com/cli/cli / generateChangelog

Function generateChangelog

pkg/cmd/release/create/create.go:651–661  ·  view source on GitHub ↗
(commits []logEntry)

Source from the content-addressed store, hash-verified

649}
650
651func generateChangelog(commits []logEntry) string {
652 var parts []string
653 for _, c := range commits {
654 // TODO: consider rendering "Merge pull request #123 from owner/branch" differently
655 parts = append(parts, fmt.Sprintf("* %s", c.Subject))
656 if c.Body != "" {
657 parts = append(parts, text.Indent(c.Body, " "))
658 }
659 }
660 return strings.Join(parts, "\n\n")
661}

Callers 1

createRunFunction · 0.85

Calls 2

IndentFunction · 0.92
JoinMethod · 0.80

Tested by

no test coverage detected