From 8490efe06dbcc4e7d94217c49dbfddd6baeb8c8d Mon Sep 17 00:00:00 2001 From: James Alseth Date: Thu, 30 Nov 2023 20:55:09 -0800 Subject: [PATCH] fix: Fix regexp for Goreleaser groups Goreleaser includes the short SHA1 commit before the commit message, so the previous patterns matching only on the beginning of the line were not matching when they should have. https://goreleaser.com/customization/changelog/#changelog Signed-off-by: James Alseth --- .goreleaser.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 09279e0a69..e8bea201b1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,10 +46,10 @@ changelog: use: github groups: - title: New Features - regexp: '^feat(ure)?:' + regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$' order: 0 - title: Bug Fixes - regexp: '^(bug|fix):' + regexp: '^.*?(bug|fix)(\([[:word:]]+\))??!?:.+$' order: 1 - title: OPA Changes regexp: '(?i)bump (opa|github.com/open-policy-agent/opa)' @@ -59,10 +59,10 @@ changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' - - '^misc:' - - '^typo:' + - '^.*?docs(\([[:word:]]+\))??!?:.+$' + - '^.*?test(\([[:word:]]+\))??!?:.+$' + - '^.*?misc(\([[:word:]]+\))??!?:.+$' + - '^.*?typo(\([[:word:]]+\))??!?:.+$' - '(?i) typo( |\.|\r?\n)' # Publishes the deb and rpm files to the GitHub releases page.