Skip to content

Commit 386a7bb

Browse files
authored
ci(release): add label-driven emoji changelog config (#17)
Pass a release-changelog-builder configuration that maps conventional labels (feature/fix/refactor/docs/test) to emoji-titled categories, so the auto-generated release notes group PRs into πŸš€/πŸ›/♻️/πŸ“/πŸ§ͺ sections instead of a flat list.
1 parent 2483420 commit 386a7bb

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

β€Ž.github/configuration.jsonβ€Ž

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"categories": [
3+
{ "title": "### πŸš€ Features", "labels": ["feature"] },
4+
{ "title": "### πŸ› Fixes", "labels": ["fix"] },
5+
{ "title": "### ♻️ Refactoring", "labels": ["refactor"] },
6+
{ "title": "### πŸ“ Documentation", "labels": ["docs"] },
7+
{ "title": "### πŸ§ͺ Tests", "labels": ["test"] }
8+
],
9+
"ignore_labels": ["ignore-for-release"],
10+
"sort": { "order": "ASC", "on_property": "mergedAt" },
11+
"template": "#{{CHANGELOG}}",
12+
"pr_template": "- #{{TITLE}} (##{{NUMBER}}) @#{{AUTHOR}}",
13+
"empty_template": "- _No user-facing changes._",
14+
"max_pull_requests": 200,
15+
"max_back_track_time_days": 365
16+
}

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ jobs:
148148
if: startsWith(github.ref, 'refs/tags/')
149149
uses: mikepenz/release-changelog-builder-action@v5
150150
with:
151+
configuration: ".github/configuration.json"
151152
failOnError: "false"
152153
env:
153154
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
Β (0)