From 612d5b05708c0b2007b0eb8ab3c27c73640213e6 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 2 Apr 2024 14:19:54 +0800 Subject: [PATCH] chore: refine changelog categorization rules - Update regular expressions for `feat`, `fix`, and `chore` categories in `.goreleaser.yaml` - Remove `Refactor` category from changelog configuration - Add `Refactor` category with updated regular expression and order to changelog configuration Signed-off-by: Bo-Yi Wu --- .goreleaser.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8161e358..1cc0bee1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -35,17 +35,17 @@ changelog: # Default is no groups. groups: - title: Features - regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' + regexp: "^.*feat[(\\w)]*:+.*$" order: 0 - title: "Bug fixes" - regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$' + regexp: "^.*fix[(\\w)]*:+.*$" order: 1 - - title: "Refactor" - regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+$' - order: 2 - title: "Enhancements" - regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$' + regexp: "^.*chore[(\\w)]*:+.*$" order: 2 + - title: "Refactor" + regexp: "^.*refactor[(\\w)]*:+.*$" + order: 3 - title: Others order: 999