From 22e64b6dec5e414945addf28e606acd5610fc4e0 Mon Sep 17 00:00:00 2001 From: Tim Basten Date: Fri, 6 Feb 2026 11:32:23 +0800 Subject: [PATCH] feature: add changelog builder --- .gitea/workflows/release.yaml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 59d1b03..7ca6d53 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -14,11 +14,44 @@ jobs: with: fetch-depth: 0 + - name: Build Changelog + id: changelog + uses: mikepenz/release-changelog-builder-action@v6 + with: + mode: "COMMIT" + configurationJson: | + { + "template": "#{{CHANGELOG}}", + "categories": [ + { + "title": "## Feature", + "labels": ["feat", "feature"] + }, + { + "title": "## Fix", + "labels": ["fix", "bug"] + }, + { + "title": "## Other", + "labels": [] + } + ], + "label_extractor": [ + { + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)", + "on_property": "title", + "target": "$1" + } + ] + } + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Gitea Release uses: akkuman/gitea-release-action@v1 with: token: ${{ secrets.GITEA_TOKEN }} tag_name: ${{ gitea.ref_name }} name: ${{ gitea.ref_name }} - body: "Automated release" + body: ${{ steps.changelog.outputs.changelog }}