From 1f2c26761d922125ac8de522be83dcac7cee81bc Mon Sep 17 00:00:00 2001 From: Mxmilu666 Date: Fri, 20 Feb 2026 15:28:31 +0800 Subject: [PATCH] refactor(release): update changelog generation process --- .github/workflows/release.yaml | 93 +++------------------------------- pkg/util/version/version.go | 2 +- 2 files changed, 8 insertions(+), 87 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 119237c5..d8c0ebe9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,15 +91,6 @@ jobs: exit 1 fi - - name: Save checksums for changelog - id: checksums - run: | - { - echo 'content<> $GITHUB_OUTPUT - - name: Debug - Check tags and commits run: | echo "Current tag: ${{ steps.tag.outputs.tag }}" @@ -117,89 +108,19 @@ jobs: - name: Build Changelog id: changelog - uses: mikepenz/release-changelog-builder-action@v4 + uses: requarks/changelog-action@v1 with: - configurationJson: | - { - "categories": [ - { - "title": "## 🚀 Features", - "labels": ["feature", "feat", "enhancement"] - }, - { - "title": "## 🐛 Bug Fixes", - "labels": ["fix", "bug", "bugfix"] - }, - { - "title": "## 📝 Documentation", - "labels": ["docs", "documentation"] - }, - { - "title": "## 🔧 Maintenance", - "labels": ["chore", "refactor", "perf"] - }, - { - "title": "## 📦 Dependencies", - "labels": ["dependencies", "deps"] - }, - { - "title": "## 🔀 Other Changes", - "labels": [] - } - ], - "template": "#{{CHANGELOG}}\n\n## 📥 Download\n\n### Checksums (SHA256)\n\n```\n${{ steps.checksums.outputs.content }}\n```\n\n**Full Changelog**: #{{RELEASE_DIFF}}", - "pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}", - "commit_template": "- #{{TITLE}} by @#{{AUTHOR}}", - "empty_template": "- No changes in this release", - "mode": "COMMIT", - "sort": { - "order": "ASC", - "on_property": "mergedAt" - }, - "max_tags_to_fetch": 200, - "max_pull_requests": 200, - "max_back_track_time_days": 365, - "label_extractor": [ - { - "pattern": "^(feat|feature)(\\(.+\\))?:", - "target": "feature", - "on_property": "title" - }, - { - "pattern": "^fix(\\(.+\\))?:", - "target": "fix", - "on_property": "title" - }, - { - "pattern": "^docs(\\(.+\\))?:", - "target": "docs", - "on_property": "title" - }, - { - "pattern": "^(chore|refactor|perf)(\\(.+\\))?:", - "target": "chore", - "on_property": "title" - }, - { - "pattern": "^(deps|dependencies)(\\(.+\\))?:", - "target": "dependencies", - "on_property": "title" - } - ], - "ignore_labels": ["ignore", "no-changelog"], - "ignore_commits": ["skip-ci", "skip ci", "[skip ci]"] - } - outputFile: CHANGELOG.md - toTag: ${{ steps.tag.outputs.tag }} - commitMode: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.tag.outputs.tag }} + writeToFile: false + includeInvalidCommits: true + useGitmojis: false - name: Create Release uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.tag.outputs.tag }} name: Release ${{ steps.tag.outputs.tag }} - body: ${{ steps.changelog.outputs.changelog }} + body: ${{ steps.changelog.outputs.changes }} draft: false prerelease: false files: | diff --git a/pkg/util/version/version.go b/pkg/util/version/version.go index 44ea859b..16de79c9 100644 --- a/pkg/util/version/version.go +++ b/pkg/util/version/version.go @@ -14,7 +14,7 @@ package version -var version = "LoliaFRP-CLI 0.67.0" +var version = "LoliaFRP-CLI 0.67.1" func Full() string { return version