From a4b8f123218a24854c71e41996a55f0666e50bd3 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 11 Jun 2024 11:19:00 +0800 Subject: [PATCH] chore: refactor changelog management and configuration - Remove the `project_name` field - Change changelog source from `git` to `gitea` - Add new changelog categories for refactor, build process updates, and documentation updates - Remove the changelog order and filters configuration Signed-off-by: Bo-Yi Wu --- .goreleaser.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 6114c01..403efa5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,5 +1,3 @@ -project_name: go - builds: - # If true, skip the build. # Useful for library projects. @@ -20,7 +18,7 @@ changelog: # - `github-native`: uses the GitHub release notes generation API, disables the groups feature. # # Defaults to `git`. - use: git + use: gitea # Sorts the changelog by the commit's messages. # Could either be asc, desc or empty @@ -43,17 +41,16 @@ changelog: - title: "Enhancements" regexp: "^.*chore[(\\w)]*:+.*$" order: 2 + - title: "Refactor" + regexp: "^.*refactor[(\\w)]*:+.*$" + order: 3 + - title: "Build process updates" + regexp: ^.*?(build|ci)(\(.+\))??!?:.+$ + order: 4 + - title: "Documentation updates" + regexp: ^.*?docs?(\(.+\))??!?:.+$ + order: 4 - title: Others - order: 999 - - filters: - # Commit messages matching the regexp listed here will be removed from - # the changelog - # Default is empty - exclude: - - "^docs" - - "CICD" - - typo gitea_urls: api: https://gitea.com/api/v1