Skip to content

Commit

Permalink
chore(pkg): move BREAKING CHANGES to their own section.
Browse files Browse the repository at this point in the history
Moreover, do not print major changes section title if no major changes are present.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jan 30, 2024
1 parent 1378404 commit b3dffad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/releasenotes/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b3dffad

Please sign in to comment.