Skip to content

Commit 200d53b

Browse files
chore: Fix the format for git-chlog to work. Thanks for nuthin', ChatGPT.
1 parent a8932c1 commit 200d53b

File tree

2 files changed

+42
-26
lines changed

2 files changed

+42
-26
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1-
{{ if .Versions }}
21
{{ range .Versions }}
3-
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
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+
45
{{ range .CommitGroups -}}
56
### {{ .Title }}
7+
68
{{ range .Commits -}}
7-
- {{ .Subject }}
9+
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
810
{{ end }}
911
{{ end -}}
1012

13+
{{- if .NoteGroups -}}
14+
{{ range .NoteGroups -}}
15+
### {{ .Title }}
16+
17+
{{ range .Notes }}
18+
{{ .Body }}
1119
{{ end }}
12-
{{ end }}
20+
{{ end -}}
21+
{{ end -}}
22+
{{ end -}}

.chglog/config.yml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
# .chglog/config.yml
2-
title: "Changelog"
3-
template: "CHANGELOG.tpl.md"
4-
sections:
5-
- title: "Features"
6-
kind: "feat"
7-
- title: "Bug Fixes"
8-
kind: "fix"
9-
- title: "Documentation"
10-
kind: "docs"
11-
- title: "Refactoring"
12-
kind: "refactor"
13-
- title: "Performance"
14-
kind: "perf"
15-
- title: "Tests"
16-
kind: "test"
17-
- title: "Chores"
18-
kind: "chore"
19-
- title: "Other"
20-
kind: "other"
21-
sort: "desc"
22-
style: "angular"
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/cortexapps/cli
6+
options:
7+
commits:
8+
filters:
9+
Type:
10+
- feat
11+
- fix
12+
- perf
13+
- refactor
14+
commit_groups:
15+
title_maps:
16+
feat: Features
17+
fix: Bug Fixes
18+
perf: Performance Improvements
19+
refactor: Code Refactoring
20+
header:
21+
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
22+
pattern_maps:
23+
- Type
24+
- Scope
25+
- Subject
26+
notes:
27+
keywords:
28+
- BREAKING CHANGE

0 commit comments

Comments
 (0)