Skip to content

Commit 40b9d52

Browse files
authored
ci: improved changelog generation (#16)
2 parents 60b7575 + 7ce42d7 commit 40b9d52

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
id: changelog
3434
uses: mikepenz/release-changelog-builder-action@v5
3535
with:
36-
# Using default configuration since configuration.json does not exist
36+
configuration: "configuration.json"
3737
mode: "COMMIT"
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

configuration.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## 🚀 Features",
5+
"labels": [
6+
"feat",
7+
"feature"
8+
]
9+
},
10+
{
11+
"title": "## 🐛 Fixes",
12+
"labels": [
13+
"fix",
14+
"bug"
15+
]
16+
},
17+
{
18+
"title": "## 🧰 Maintenance",
19+
"labels": [
20+
"chore",
21+
"refactor",
22+
"ci",
23+
"build",
24+
"test"
25+
]
26+
},
27+
{
28+
"title": "## 📝 Documentation",
29+
"labels": [
30+
"docs",
31+
"documentation"
32+
]
33+
}
34+
],
35+
"ignore_labels": [
36+
"ignore"
37+
],
38+
"sort": {
39+
"order": "ASC",
40+
"on": "date"
41+
},
42+
"template": "# Changelog\n\n${{CHANGELOG}}",
43+
"pr_template": "- ${{TITLE}}",
44+
"empty_template": "- No changes found",
45+
"label_extractor": [
46+
{
47+
"pattern": "^(feat|fix|chore|refactor|ci|build|test|docs|perf|style|revert)(\\(.+\\))?: (.+)",
48+
"target": "$1"
49+
}
50+
]
51+
}

0 commit comments

Comments
 (0)