From 4b9050c5a7f44e959d71b58cdf9dbc797101f1b0 Mon Sep 17 00:00:00 2001 From: Florian Wartner Date: Sun, 21 Jul 2024 20:32:54 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be20ca0..2c816c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,19 @@ jobs: - name: Build Changelog uses: mikepenz/release-changelog-builder-action@v4 with: + commitMode: true configurationJson: | { - "template": "#{{CHANGELOG}}\n\n
\nUncategorized\n\n#{{UNCATEGORIZED}}\n
", + "template": "#{{CHANGELOG}}", "categories": [ + { + "title": "## Feature", + "labels": ["feat", "feature"] + }, + { + "title": "## Fix", + "labels": ["fix", "bug"] + }, { "title": "## 💬 Other", "labels": ["other"] @@ -24,7 +33,13 @@ jobs: "title": "## 📦 Dependencies", "labels": ["dependencies"] } - ] - } + ], + "label_extractor": [ + { + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)", + "target": "$1" + } + ], + }] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}