Skip to content

Commit 63d62f1

Browse files
committed
chore: refactor and update changelog configuration settings
- 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 <[email protected]>
1 parent 6fdfe85 commit 63d62f1

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.goreleaser.yaml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
project_name: queue
1+
version: 2
22

33
builds:
4-
-
5-
# If true, skip the build.
4+
- # If true, skip the build.
65
# Useful for library projects.
76
# Default is false
87
skip: true
98

109
changelog:
1110
# Set it to true if you wish to skip the changelog generation.
1211
# This may result in an empty release notes on GitHub/GitLab/Gitea.
13-
skip: false
12+
disable: false
1413

1514
# Changelog generation implementation to use.
1615
#
@@ -21,7 +20,7 @@ changelog:
2120
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
2221
#
2322
# Defaults to `git`.
24-
use: git
23+
use: github
2524

2625
# Sorts the changelog by the commit's messages.
2726
# Could either be asc, desc or empty
@@ -36,22 +35,22 @@ changelog:
3635
# Default is no groups.
3736
groups:
3837
- title: Features
39-
regexp: "^.*feat[(\\w)]*:+.*$"
38+
regexp: "^.*feat[(\\w-)]*:+.*$"
4039
order: 0
41-
- title: 'Bug fixes'
42-
regexp: "^.*fix[(\\w)]*:+.*$"
40+
- title: "Bug fixes"
41+
regexp: "^.*fix[(\\w-)]*:+.*$"
4342
order: 1
44-
- title: 'Enhancements'
45-
regexp: "^.*chore[(\\w)]*:+.*$"
43+
- title: "Enhancements"
44+
regexp: "^.*chore[(\\w-)]*:+.*$"
4645
order: 2
46+
- title: "Refactor"
47+
regexp: "^.*refactor[(\\w-)]*:+.*$"
48+
order: 3
49+
- title: "Build process updates"
50+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
51+
order: 4
52+
- title: "Documentation updates"
53+
regexp: ^.*?docs?(\(.+\))??!?:.+$
54+
order: 4
4755
- title: Others
4856
order: 999
49-
50-
filters:
51-
# Commit messages matching the regexp listed here will be removed from
52-
# the changelog
53-
# Default is empty
54-
exclude:
55-
- '^docs'
56-
- 'CICD'
57-
- typo

0 commit comments

Comments
 (0)