Skip to content

Commit 3f8e5b3

Browse files
committed
add custom changelog template for release workflow
1 parent 6e519e1 commit 3f8e5b3

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Diff for: .github/CHANGELOG_TEMPLATE.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## 🚀 Features",
5+
"labels": ["feature"]
6+
},
7+
{
8+
"title": "## 🐛 Fixes",
9+
"labels": ["fix"]
10+
},
11+
{
12+
"title": "## 🧪 Tests",
13+
"labels": ["test"]
14+
}
15+
],
16+
"sort": "ASC",
17+
"template": "${{CHANGELOG}}\n\n${{UNCATEGORIZED}}\n",
18+
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
19+
"empty_template": "- no changes"
20+
}

Diff for: .github/workflows/gh-release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
- name: Build Changelog
1212
id: github_release
1313
uses: mikepenz/release-changelog-builder-action@main
14+
with:
15+
configuration: ".github/CHANGELOG_TEMPLATE.json"
1416
env:
1517
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1618

0 commit comments

Comments
 (0)