Skip to content

Commit 37be77e

Browse files
committed
Added CHANGELOG
1 parent df345ed commit 37be77e

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{{ if .Versions -}}
2+
<a name="unreleased"></a>
3+
## [Unreleased]
4+
{{ if .Unreleased.CommitGroups -}}
5+
{{ range .Unreleased.CommitGroups -}}
6+
### {{ .Title }}
7+
{{ range .Commits -}}
8+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
9+
{{ end }}
10+
{{ end -}}
11+
{{ else }}
12+
{{ range .Unreleased.Commits -}}
13+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
14+
{{ end }}
15+
{{ end -}}
16+
{{ end -}}
17+
18+
{{ range .Versions }}
19+
<a name="{{ .Tag.Name }}"></a>
20+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
21+
{{ if .CommitGroups -}}
22+
{{ range .CommitGroups -}}
23+
### {{ .Title }}
24+
{{ range .Commits -}}
25+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
26+
{{ end }}
27+
{{ end -}}
28+
{{ else }}
29+
{{ range .Commits -}}
30+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
31+
{{ end }}
32+
{{ end -}}
33+
34+
{{- if .NoteGroups -}}
35+
{{ range .NoteGroups -}}
36+
### {{ .Title }}
37+
{{ range .Notes }}
38+
{{ .Body }}
39+
{{ end }}
40+
{{ end -}}
41+
{{ end -}}
42+
{{ end -}}
43+
44+
{{- if .Versions }}
45+
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
46+
{{ range .Versions -}}
47+
{{ if .Tag.Previous -}}
48+
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
49+
{{ end -}}
50+
{{ end -}}
51+
{{ end -}}

.chglog/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/terraform-aws-modules/terraform-aws-redshift
6+
options:
7+
header:
8+
pattern: "^(.*)$"
9+
pattern_maps:
10+
- Subject

CHANGELOG.md

Whitespace-only changes.

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: changelog release
2+
3+
changelog:
4+
git-chglog -o CHANGELOG.md --next-tag `semtag final -s minor -o`
5+
6+
release:
7+
semtag final -s minor

0 commit comments

Comments
 (0)