Skip to content

Commit

Permalink
chore: improve release changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bos-hieu committed Jul 28, 2024
1 parent 0cd3c63 commit cc7ef90
Showing 1 changed file with 36 additions and 21 deletions.
57 changes: 36 additions & 21 deletions .chglog/CHANGELOG-RELEASE.tpl.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,47 @@
# Changelog
{{ range .Versions }}
{{ range .CommitGroups -}}

{{- range .Versions }}
{{- range .CommitGroups }}

### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }} {{.Hash.Short}}: {{ .Subject }} (@{{.Author.Name}})
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
{{- range .Commits }}

- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{.Hash.Short}}: {{ .Subject }} (@{{.Author.Name}})
{{- end }}
{{- end }}

{{- if .RevertCommits }}

### Reverts
{{ range .RevertCommits -}}

{{- range .RevertCommits }}

- {{ .Revert.Header }}
{{ end }}
{{ end -}}
{{- end }}
{{- end }}

{{- if .MergeCommits }}

{{- if .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}

{{- range .MergeCommits }}

- {{ .Header }}
{{ end }}
{{ end -}}
{{- end }}
{{- end }}

{{- if .NoteGroups }}
{{- range .NoteGroups }}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}

{{- if .Notes }}
{{- range .Notes }}

{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit cc7ef90

Please sign in to comment.