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 }}