Skip to content

Commit

Permalink
fix: use xdigit for abbrev-commit match
Browse files Browse the repository at this point in the history
Use [[:xdigit:]] to match the abbrev-commit, which is clearer as to the
intent and correct as the previous version had a typo anyway.
  • Loading branch information
stevenh committed Nov 7, 2022
1 parent d9cdc6a commit ba5bcda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ changelog:
- go mod tidy
groups:
- title: Dependency updates
regexp: '^[0-9a-h]+ (feat|fix)\(deps\)!?:.+$'
regexp: '^[[:xdigit:]]+ (feat|fix)\(deps\)!?:.+$'
order: 300
- title: 'New Features'
regexp: '^[0-9a-h]+ feat(\([[:word:]]+\))??!?:.+$'
regexp: '^[[:xdigit:]]+ feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: '^[0-9a-h]+ fix(\([[:word:]]+\))??!?:.+$'
regexp: '^[[:xdigit:]]+ fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation updates'
regexp: ^[0-9a-h]+ doc(\([[:word:]]+\))??!?:.+$
regexp: ^[[:xdigit:]]+ doc(\([[:word:]]+\))??!?:.+$
order: 400
- title: Other work
order: 9999
Expand Down
4 changes: 2 additions & 2 deletions www/docs/customization/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ changelog:
# Default is no groups.
groups:
- title: Features
regexp: '^[0-9a-h]+ feat(\([[:word:]]+\))??!?:.+$'
regexp: '^[[:xdigit:]]+ feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: 'Bug fixes'
regexp: '^[0-9a-h]+ bug(\([[:word:]]+\))??!?:.+$'
regexp: '^[[:xdigit:]]+ bug(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999
Expand Down

0 comments on commit ba5bcda

Please sign in to comment.