Skip to content

Commit 9cd8c9a

Browse files
committed
feat: CHANGELOG add with chglog
1 parent bf34f59 commit 9cd8c9a

File tree

4 files changed

+85
-1
lines changed

4 files changed

+85
-1
lines changed

.chglog/CHANGELOG.tpl.md

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

.chglog/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: Changelog for drizzle-setup
5+
repository_url: 'https://github.com/devgauravjatt/drizzle-setup'
6+
options:
7+
commits:
8+
filters:
9+
Type:
10+
- feature
11+
- fix
12+
- docs
13+
- wip
14+
- perfs
15+
- rollback
16+
- other
17+
- feat
18+
- ci
19+
- build
20+
- refactor
21+
- style
22+
- perf
23+
- revert
24+
- test
25+
- chore
26+
27+
commit_groups:
28+
title_maps:
29+
feature: Feature
30+
fix: Bug Fixes
31+
docs: Documentation
32+
wip: Work In Progress
33+
perfs: Performance Improvements (legacy)
34+
rollback: Rollback
35+
other: Other
36+
feat: Feature
37+
ci: Continuous Integration
38+
build: Build System
39+
refactor: Refactoring
40+
style: Code Style
41+
perf: Performance Improvements
42+
revert: Revert
43+
test: Tests
44+
chore: Chores
45+
46+
header:
47+
pattern: "^(\\w*)\\:\\s(.*)$"
48+
pattern_maps:
49+
- Type
50+
- Subject
51+
52+
notes:
53+
keywords:
54+
- BREAKING CHANGE

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"files": {
1010
"ignoreUnknown": false,
11-
"ignore": ["pnpm-lock.yaml", "pnpm-workspace.yaml"]
11+
"ignore": [".chglog/*", "pnpm-lock.yaml", "pnpm-workspace.yaml"]
1212
},
1313
"formatter": {
1414
"enabled": true,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"start": "node ./dist/index.js",
4444
"build": "tsdown",
4545
"lint": "biome lint",
46+
"changelog": "git-chglog -o CHANGELOG.md",
4647
"release": "pnpm build && pnpm copy-templates && pnpm publish",
4748
"copy-templates": "xcopy \"templates\" \"dist\\templates\" /E /I /Y",
4849
"link": "pnpm run build && pnpm copy-templates && pnpm link"

0 commit comments

Comments
 (0)