diff --git a/main.go b/main.go index b645fcb..1d19718 100644 --- a/main.go +++ b/main.go @@ -186,6 +186,10 @@ func runGenerate(cmd *cli.Context) { fmt.Printf("## [%s](https://github.com/%s/releases/tag/v%s) - %s\n", milestone, config.Repo, milestone, time.Now().Format("2006-01-02")) for _, g := range config.Groups { + if len(changelogs[g.Name]) == 0 { + continue + } + fmt.Println("* " + g.Name) for _, pr := range changelogs[g.Name] { fmt.Printf(" * %s (#%d)\n", *pr.Title, *pr.Number)