diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md new file mode 100644 index 0000000..a78618c --- /dev/null +++ b/.chglog/CHANGELOG.tpl.md @@ -0,0 +1,46 @@ +{{ range .Versions }} + +## {{ if .Tag.Previous }}[Release {{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} + +> Release Date: {{ datetime "2006-01-02" .Tag.Date }} + +{{ range .CommitGroups -}} +### {{ .Title }} + +{{ range .Commits -}} +- [{{ .Hash.Short }}]{{"\t"}}{{ .Subject }}{{ range .Refs }} (#{{ .Ref }}) {{ end }} +{{ end }} +{{ end -}} + +{{- if .RevertCommits -}} +### โฎ Reverts + +{{ range .RevertCommits -}} +- [{{ .Hash.Short }}]{{"\t"}}{{ .Revert.Header }}{{ range .Refs }} (#{{ .Ref }}) {{ end }} +{{ end }} +{{ end -}} + +### โš ๏ธ BREAKING + +{{ range .Commits -}} +{{ if .Notes -}} +{{ if not .Merge -}} +{{ if not (contains .Header "Update CHANGELOG for" ) -}} +{{ .Subject }} [{{ .Hash.Short }}]:{{"\n"}}{{ range .Notes }}{{ .Body }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} +{{ end -}} + +### ๐Ÿ“– Commits + +{{ range .Commits -}} +{{ if not .Merge -}} +{{ if not (contains .Header "Update CHANGELOG for" ) -}} +- [{{ .Hash.Short }}]{{"\t"}}{{ .Header }}{{ range .Refs }} (#{{ .Ref }}) {{ end }} +{{ end -}} +{{ end -}} +{{ end -}} + +{{ end -}} \ No newline at end of file diff --git a/.chglog/config.yml b/.chglog/config.yml new file mode 100644 index 0000000..86d0891 --- /dev/null +++ b/.chglog/config.yml @@ -0,0 +1,31 @@ +style: github +template: CHANGELOG.tpl.md +info: + title: CHANGELOG + repository_url: https://github.com/timbray/topfew +options: + commits: + filters: + Type: + - chore + - fix + - kaizen + - docs + commit_groups: + title_maps: + chore: ๐Ÿงน Chore + fix: ๐Ÿž Fix + kaizen: ๐Ÿ‘ฉโ€๐ŸŽจ Improve + docs: ๐Ÿ“š Documentation + header: + pattern: "^(\\w*)\\:\\s(.*)$" + pattern_maps: + - Type + - Subject + refs: + actions: + - Closes + - Fixes + notes: + keywords: + - "BREAKING"