Skip to content

Commit a6b61b6

Browse files
authored
chore: Added CHANGELOG (#24)
1 parent a1856e0 commit a6b61b6

File tree

4 files changed

+158
-0
lines changed

4 files changed

+158
-0
lines changed

.chglog/CHANGELOG.tpl.md

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
{{ if .Versions -}}
6+
<a name="unreleased"></a>
7+
## [Unreleased]
8+
{{ if .Unreleased.CommitGroups -}}
9+
{{ range .Unreleased.CommitGroups -}}
10+
{{ .Title }}:
11+
{{ range .Commits -}}
12+
{{- if .Subject -}}
13+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
14+
{{ end -}}
15+
{{ end }}
16+
{{ end -}}
17+
{{ else }}
18+
{{ range .Unreleased.Commits -}}
19+
{{- if .Subject -}}
20+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
21+
{{ end -}}
22+
{{ end }}
23+
{{ end -}}
24+
{{ end -}}
25+
26+
{{ range .Versions }}
27+
<a name="{{ .Tag.Name }}"></a>
28+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
29+
{{ if .CommitGroups -}}
30+
{{ range .CommitGroups -}}
31+
{{ .Title }}:
32+
{{ range .Commits -}}
33+
{{- if .Subject -}}
34+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
35+
{{ end -}}
36+
{{ end }}
37+
{{ end -}}
38+
{{ else }}
39+
{{ range .Commits -}}
40+
{{- if .Subject -}}
41+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
42+
{{ end -}}
43+
{{ end }}
44+
{{ end -}}
45+
46+
{{- if .NoteGroups -}}
47+
{{ range .NoteGroups -}}
48+
{{ .Title }}:
49+
{{ range .Notes }}
50+
{{ .Body }}
51+
{{ end }}
52+
{{ end -}}
53+
{{ end -}}
54+
{{ end -}}
55+
56+
{{- if .Versions }}
57+
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
58+
{{ range .Versions -}}
59+
{{ if .Tag.Previous -}}
60+
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
61+
{{ end -}}
62+
{{ end -}}
63+
{{ end -}}

.chglog/config.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/antonbabenko/modules.tf-lambda
6+
options:
7+
8+
commits:
9+
sort_by: Type
10+
filters:
11+
Type:
12+
- feat
13+
- fix
14+
- improvement
15+
- docs
16+
- refactor
17+
- test
18+
- ci
19+
- chore
20+
21+
commit_groups:
22+
group_by: Type
23+
title_maps:
24+
feat: FEATURES
25+
fix: BUG FIXES
26+
improvement: ENHANCEMENTS
27+
docs: DOCS
28+
refactor: REFACTORS
29+
test: TESTS
30+
ci: CI
31+
chore: CHORES
32+
33+
header:
34+
pattern: "^(.+)\\s*:\\s*(.+)$"
35+
pattern_maps:
36+
- Type
37+
- Subject
38+
39+
notes:
40+
keywords:
41+
- BREAKING CHANGE
42+
- NOTES
43+
44+
refs:
45+
actions:
46+
- Closes
47+
- Fixes
48+
- Resolves

CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
<a name="unreleased"></a>
6+
## [Unreleased]
7+
FEATURES:
8+
- Added DynamoDB Table
9+
10+
11+
<a name="v1.4.0"></a>
12+
## [v1.4.0] - 2019-11-05
13+
14+
15+
16+
<a name="v1.3.0"></a>
17+
## [v1.3.0] - 2019-11-04
18+
19+
20+
21+
<a name="v1.2.0"></a>
22+
## [v1.2.0] - 2019-04-15
23+
24+
25+
26+
<a name="v1.1.0"></a>
27+
## [v1.1.0] - 2018-11-25
28+
29+
30+
31+
<a name="v1.0.0"></a>
32+
## v1.0.0 - 2018-11-19
33+
34+
35+
36+
[Unreleased]: https://github.com/antonbabenko/modules.tf-lambda/compare/v1.4.0...HEAD
37+
[v1.4.0]: https://github.com/antonbabenko/modules.tf-lambda/compare/v1.3.0...v1.4.0
38+
[v1.3.0]: https://github.com/antonbabenko/modules.tf-lambda/compare/v1.2.0...v1.3.0
39+
[v1.2.0]: https://github.com/antonbabenko/modules.tf-lambda/compare/v1.1.0...v1.2.0
40+
[v1.1.0]: https://github.com/antonbabenko/modules.tf-lambda/compare/v1.0.0...v1.1.0

Makefile

+7
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)