Compare commits

..

No commits in common. "main" and "v2" have entirely different histories.
main ... v2

1 changed files with 4 additions and 6 deletions

View File

@ -61,13 +61,11 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
if changelog != nil { if changelog != nil {
for label, prs := range *changelog { for label, prs := range *changelog {
if len(prs) > 0 { if len(prs) > 0 {
if !strings.Contains(label, "Status/") { // TODO: here we should take the label from the config and only default to the name
// TODO: here we should take the label from the config and only default to the name fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
for _, pr := range prs { for _, pr := range prs {
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName) fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName)
}
} }
b.WriteString("\n") b.WriteString("\n")