Skip to content

Commit b479886

Browse files
author
Michael Gasch
authored
Merge pull request #30 from embano1/issue-29
chore: Add CHANGELOG configuration
2 parents 21797dc + 5764180 commit b479886

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{{ range .Versions }}
2+
<a name="{{ .Tag.Name }}"></a>
3+
## {{ if .Tag.Previous }}[Release {{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }}
4+
5+
> Release Date: {{ datetime "2006-01-02" .Tag.Date }}
6+
7+
{{ range .CommitGroups -}}
8+
### {{ .Title }}
9+
10+
{{ range .Commits -}}
11+
- {{ .Subject }}
12+
{{ end }}
13+
{{ end -}}
14+
15+
{{- if .RevertCommits -}}
16+
### ⏮ Reverts
17+
18+
{{ range .RevertCommits -}}
19+
- {{ .Revert.Header }}
20+
{{ end }}
21+
{{ end -}}
22+
23+
{{- if .NoteGroups -}}
24+
{{ range .NoteGroups -}}
25+
### ⚠️ {{ .Title }}
26+
27+
{{ range .Notes }}
28+
{{ .Body }}
29+
{{ end }}
30+
{{ end -}}
31+
{{ end -}}
32+
33+
### 📖 Commits
34+
35+
{{ range .Commits -}}
36+
{{ if not .Merge -}}
37+
{{ if not (contains .Header "Update CHANGELOG for" ) -}}
38+
- {{ .Header }} [{{ .Hash.Short }}]
39+
{{ end -}}
40+
{{ end -}}
41+
{{ end -}}
42+
43+
{{ end -}}

.chglog/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/cloudevents/sdk-powershell
6+
options:
7+
commits:
8+
filters:
9+
Type:
10+
- fix
11+
- feat
12+
- chore
13+
commit_groups:
14+
title_maps:
15+
fix: 🐞 Fix
16+
feat: 💫 Feature
17+
chore: 🧹 Chore
18+
header:
19+
pattern: "^(\\w*)\\:\\s(.*)$"
20+
pattern_maps:
21+
- Type
22+
- Subject
23+
refs:
24+
actions:
25+
- Closes
26+
- Fixes
27+
notes:
28+
keywords:
29+
- "BREAKING"

0 commit comments

Comments
 (0)