From cd938863bdd5236b5d2534e219e787827aa4f73b Mon Sep 17 00:00:00 2001 From: Lee SangMin Date: Sun, 16 Jul 2023 22:07:16 +0900 Subject: [PATCH] Update src/action.go --- src/action.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/action.go b/src/action.go index cff446b..9f87490 100644 --- a/src/action.go +++ b/src/action.go @@ -61,11 +61,13 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea if changelog != nil { for label, prs := range *changelog { if len(prs) > 0 { - // 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)) + if strings.Contains(label, "Satatus/") { + // 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 { - fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName) + for _, pr := range prs { + fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName) + } } b.WriteString("\n")