Skip to content

Commit

Permalink
fix: Fix regexp for Goreleaser groups
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 <[email protected]>
  • Loading branch information
jalseth committed Dec 1, 2023
1 parent 6667f03 commit 8490efe
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(\([[: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 8490efe

Please sign in to comment.