Skip to content

Commit 1b278ac

Browse files
committed
refactor: refactor changelog generation and commit grouping
- Change the `changelog` generation implementation to use `git` - Update the regex patterns for grouping commits under different titles - Add new titles for `Refactor`, `Build process updates`, and `Documentation updates` under groups - Remove specific commit messages from the changelog using filters Signed-off-by: appleboy <[email protected]>
1 parent 25222d0 commit 1b278ac

File tree

1 file changed

+13
-41
lines changed

1 file changed

+13
-41
lines changed

.goreleaser.yaml

Lines changed: 13 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,25 @@ builds:
77
skip: true
88

99
changelog:
10-
# Set it to true if you wish to skip the changelog generation.
11-
# This may result in an empty release notes on GitHub/GitLab/Gitea.
12-
skip: false
13-
14-
# Changelog generation implementation to use.
15-
#
16-
# Valid options are:
17-
# - `git`: uses `git log`;
18-
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
19-
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
20-
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
21-
#
22-
# Defaults to `git`.
23-
use: github
24-
25-
# Sorts the changelog by the commit's messages.
26-
# Could either be asc, desc or empty
27-
# Default is empty
28-
sort: asc
29-
30-
# Group commits messages by given regex and title.
31-
# Order value defines the order of the groups.
32-
# Proving no regex means all commits will be grouped under the default group.
33-
# Groups are disabled when using github-native, as it already groups things by itself.
34-
#
35-
# Default is no groups.
10+
use: git
3611
groups:
3712
- title: Features
38-
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
13+
regexp: "^.*feat[(\\w)]*:+.*$"
3914
order: 0
4015
- title: "Bug fixes"
41-
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
16+
regexp: "^.*fix[(\\w)]*:+.*$"
4217
order: 1
43-
- title: "Refactor"
44-
regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+$'
45-
order: 2
4618
- title: "Enhancements"
47-
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
19+
regexp: "^.*chore[(\\w)]*:+.*$"
4820
order: 2
21+
- title: "Refactor"
22+
regexp: "^.*refactor[(\\w)]*:+.*$"
23+
order: 3
24+
- title: "Build process updates"
25+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
26+
order: 4
27+
- title: "Documentation updates"
28+
regexp: ^.*?docs?(\(.+\))??!?:.+$
29+
order: 4
4930
- title: Others
5031
order: 999
51-
52-
filters:
53-
# Commit messages matching the regexp listed here will be removed from
54-
# the changelog
55-
# Default is empty
56-
exclude:
57-
- "^docs"
58-
- "CICD"
59-
- typo

0 commit comments

Comments
 (0)