mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
Add a `**BREAKING**` prefix to any entries in the changelog that are marked as breaking changes. Closes #225
24 lines
541 B
Smarty
24 lines
541 B
Smarty
{{define "entry" -}}
|
|
- {{ if .BreakingChange}}**BREAKING**: {{end}}{{ if .Scope }}**{{.Scope}}**: {{end}}{{.Description}}
|
|
{{ end }}
|
|
|
|
{{- if not .Formatting.HideVersionTitle }}
|
|
## [{{.Data.Version}}]({{.Data.VersionLink}})
|
|
{{ end -}}
|
|
{{- if .Data.Prefix }}
|
|
{{ .Data.Prefix }}
|
|
{{ end -}}
|
|
{{- with .Data.Commits.feat }}
|
|
### Features
|
|
|
|
{{ range . -}}{{template "entry" .}}{{end}}
|
|
{{- end -}}
|
|
{{- with .Data.Commits.fix }}
|
|
### Bug Fixes
|
|
|
|
{{ range . -}}{{template "entry" .}}{{end}}
|
|
{{- end -}}
|
|
|
|
{{- if .Data.Suffix }}
|
|
{{ .Data.Suffix }}
|
|
{{ end }}
|