Files
demo/.chglog/CHANGELOG.tpl.md

990 B
Executable File

{{ with index .Versions 0 }}

{{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})

{{ range .CommitGroups -}}

{{ .Title }}

{{ range .Commits -}}

  • {{ if .Scope }}{{ .Scope }}: {{ end }}{{ .Subject }} ([{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }})) {{ end }} {{ end -}}

{{- if .RevertCommits -}}

Reverts

{{ range .RevertCommits -}}

  • {{ .Revert.Header }} ([{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }})) {{ end }} {{ end -}}

{{- if .MergeCommits -}}

Pull Requests

{{ range .MergeCommits -}}

  • {{ .Header }} ([{{ .Hash.Short }}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }})) {{ end }} {{ end -}}

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

{{ .Title }}

{{ range .Notes }} {{ .Body }} {{ end }} {{ end -}} {{ end -}} {{ end }}