2019-08-06 21:50:34 +00:00
|
|
|
{{ if .Versions -}}
|
|
|
|
## [Unreleased]
|
|
|
|
|
|
|
|
{{ if .Unreleased.CommitGroups -}}
|
|
|
|
{{ range .Unreleased.CommitGroups -}}
|
|
|
|
### {{ .Title }}
|
|
|
|
{{ range .Commits -}}
|
|
|
|
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} [{{.Hash.Short}}]({{ $.Info.RepositoryURL }}/commit/{{ .Hash.Short }})
|
|
|
|
{{ end }}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{ range .Versions }}
|
|
|
|
## {{ if .Tag.Previous }}[{{ .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 .NoteGroups -}}
|
|
|
|
{{ range .NoteGroups -}}
|
|
|
|
### {{ .Title }}
|
|
|
|
{{ range .Notes }}
|
|
|
|
{{ .Body }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|
|
|
|
|
|
|
|
{{- if .Versions }}
|
|
|
|
[Unreleased]: {{ $.Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
|
|
|
|
{{ range .Versions -}}
|
|
|
|
{{ if .Tag.Previous -}}
|
|
|
|
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|