Skip to content

Commit 61d23a3

Browse files
committed
ci: Add git-chglog configuration files
1 parent 15879af commit 61d23a3

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.github/chglog/CHANGELOG.tpl.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{{ range .Versions }}
2+
<a name="{{ .Tag.Name }}"></a>
3+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
4+
5+
{{ range .CommitGroups -}}
6+
### {{ .Title }}
7+
8+
{{ range .Commits -}}
9+
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ upperFirst .Subject }}
10+
{{ end }}
11+
{{ end -}}
12+
13+
{{- if .RevertCommits -}}
14+
### Reverts
15+
16+
{{ range .RevertCommits -}}
17+
* {{ .Revert.Header }}
18+
{{ end }}
19+
{{ end -}}
20+
21+
{{- if .NoteGroups -}}
22+
{{ range .NoteGroups -}}
23+
### {{ .Title }}
24+
25+
{{ range .Notes }}
26+
{{ upperFirst .Body }}
27+
{{ end }}
28+
{{ end -}}
29+
{{ end -}}
30+
{{ end -}}

.github/chglog/config.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/powerapi-ng/hwpc-sensor
6+
options:
7+
commits:
8+
filters:
9+
Type:
10+
- feat
11+
- fix
12+
- perf
13+
- refactor
14+
- style
15+
- docs
16+
- test
17+
- build
18+
- ci
19+
- chore
20+
commit_groups:
21+
title_maps:
22+
feat: Features
23+
fix: Bug Fixes
24+
perf: Performance Improvements
25+
refactor: Code Refactoring
26+
docs: Documentation
27+
test: Tests
28+
build: Build System
29+
ci: Continuous Integration
30+
chore: Miscellaneous Chores
31+
header:
32+
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
33+
pattern_maps:
34+
- Type
35+
- Scope
36+
- Subject
37+
notes:
38+
keywords:
39+
- BREAKING CHANGE

0 commit comments

Comments
 (0)