diff --git a/pkg/releasenotes/print.go b/pkg/releasenotes/print.go index 43aae2f..78fbd3e 100644 --- a/pkg/releasenotes/print.go +++ b/pkg/releasenotes/print.go @@ -16,13 +16,17 @@ const templ = `## v{{ .Milestone }} Released on {{ .Day }} +{{ if .BreakingNotes }} +### Breaking Changes :warning: -### Major Changes - -{{ if .MajorNotes }} {{ range .BreakingNotes }} * {{ .Description }} [[#{{ .Num }}]({{ .URI }})] - [{{ .Author }}]({{ .AuthorURL }}) {{ end }} +{{ end }} + +{{ if .MajorNotes }} +### Major Changes + {{ range .MajorNotes }} * {{ .Description }} [[#{{ .Num }}]({{ .URI }})] - [{{ .Author }}]({{ .AuthorURL }}) {{ end }}