Skip to content

Commit

Permalink
fix: Fix regexp for Goreleaser groups (#892)
Browse files Browse the repository at this point in the history
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 <james@jalseth.me>
  • Loading branch information
jalseth authored Dec 11, 2023
1 parent a552673 commit 8a6e121
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ changelog:
use: github
groups:
- title: New Features
regexp: '^feat(ure)?:'
regexp: '^.*?feat(ure)?(\([[: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)'
Expand All @@ -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.
Expand Down

0 comments on commit 8a6e121

Please sign in to comment.