Compare commits

...

2 Commits
v2 ... main

Author SHA1 Message Date
Lee SangMin b5ec9f97db Update src/action.go 2023-07-16 22:08:51 +09:00
Lee SangMin cd938863bd Update src/action.go 2023-07-16 22:07:16 +09:00
1 changed files with 6 additions and 4 deletions

View File

@ -61,11 +61,13 @@ 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 {
// TODO: here we should take the label from the config and only default to the name if !strings.Contains(label, "Status/") {
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label)) // 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))
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")