Skip to content

Commit

Permalink
chore: refactor and update changelog configuration settings
Browse files Browse the repository at this point in the history
- Add version field with value `2`
- Rename `skip` to `disable` in changelog configuration
- Change `use` field from `git` to `github` in changelog configuration
- Update regex patterns for `feat`, `fix`, and `chore` to include hyphens
- Add new changelog categories: `Refactor`, `Build process updates`, and `Documentation updates`
- Remove `filters` section from changelog configuration

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 5, 2025
1 parent 6fdfe85 commit 63d62f1
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
project_name: queue
version: 2

builds:
-
# If true, skip the build.
- # If true, skip the build.
# Useful for library projects.
# Default is false
skip: true

changelog:
# Set it to true if you wish to skip the changelog generation.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
skip: false
disable: false

# Changelog generation implementation to use.
#
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,22 +35,22 @@ changelog:
# Default is no groups.
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
regexp: "^.*feat[(\\w-)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
- title: "Bug fixes"
regexp: "^.*fix[(\\w-)]*:+.*$"
order: 1
- title: 'Enhancements'
regexp: "^.*chore[(\\w)]*:+.*$"
- title: "Enhancements"
regexp: "^.*chore[(\\w-)]*:+.*$"
order: 2
- title: "Refactor"
regexp: "^.*refactor[(\\w-)]*:+.*$"
order: 3
- title: "Build process updates"
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
order: 4
- title: "Documentation updates"
regexp: ^.*?docs?(\(.+\))??!?:.+$
order: 4
- title: Others
order: 999

filters:
# Commit messages matching the regexp listed here will be removed from
# the changelog
# Default is empty
exclude:
- '^docs'
- 'CICD'
- typo

0 comments on commit 63d62f1

Please sign in to comment.