Skip to content

Commit

Permalink
chore: refactor changelog formatting and build configuration
Browse files Browse the repository at this point in the history
- Update build configuration to skip build using a comment
- Change `use` value from `git` to `github` in the changelog section
- Modify regex patterns and titles in the changelog section for Features, Bug fixes, and Enhancements
- Update excluded items in the changelog section to use double quotes instead of single quotes

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Apr 1, 2024
1 parent 0c85ca1 commit 00bf780
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
project_name: queue

builds:
-
# If true, skip the build.
- # If true, skip the build.
# Useful for library projects.
# Default is false
skip: true
Expand All @@ -21,7 +20,7 @@ changelog:
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
#
# Defaults to `git`.
use: git
use: github

# Sorts the changelog by the commit's messages.
# Could either be asc, desc or empty
Expand All @@ -36,13 +35,16 @@ changelog:
# Default is no groups.
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: 'Enhancements'
regexp: "^.*chore[(\\w)]*:+.*$"
- title: "Refactor"
regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+$'
order: 2
- title: "Enhancements"
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Others
order: 999
Expand All @@ -52,6 +54,6 @@ changelog:
# the changelog
# Default is empty
exclude:
- '^docs'
- 'CICD'
- "^docs"
- "CICD"
- typo

0 comments on commit 00bf780

Please sign in to comment.