Skip to content

Commit 35f9553

Browse files
committed
chore: refine Changelog Generation and Filtering
- Remove project_name from .goreleaser.yaml - Change changelog generation from git to GitHub API - Add changelog groups for refactors, build process updates, and documentation updates - Remove changelog filters that exclude commits with messages matching certain patterns (e.g., "docs", "CICD", "typo") Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 84f43c1 commit 35f9553

1 file changed

Lines changed: 10 additions & 38 deletions

File tree

.goreleaser.yaml

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,11 @@
1-
project_name: queue
2-
31
builds:
42
- # If true, skip the build.
53
# Useful for library projects.
64
# Default is false
75
skip: true
86

97
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: git
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.
8+
use: github
369
groups:
3710
- title: Features
3811
regexp: "^.*feat[(\\w)]*:+.*$"
@@ -43,14 +16,13 @@ changelog:
4316
- title: "Enhancements"
4417
regexp: "^.*chore[(\\w)]*:+.*$"
4518
order: 2
19+
- title: "Refactor"
20+
regexp: "^.*refactor[(\\w)]*:+.*$"
21+
order: 3
22+
- title: "Build process updates"
23+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
24+
order: 4
25+
- title: "Documentation updates"
26+
regexp: ^.*?docs?(\(.+\))??!?:.+$
27+
order: 4
4628
- title: Others
47-
order: 999
48-
49-
filters:
50-
# Commit messages matching the regexp listed here will be removed from
51-
# the changelog
52-
# Default is empty
53-
exclude:
54-
- "^docs"
55-
- "CICD"
56-
- typo

0 commit comments

Comments
 (0)