Skip to content

Commit 17f2a0c

Browse files
committed
chore: refine build and changelog configurations
- Update the GitHub Actions workflow to use `golangci-lint-action@v5` instead of `v4` - Remove the `project_name` setting from `.goreleaser.yaml` - Simplify the `builds` section by removing comments and keeping the `skip: true` setting - Change the changelog configuration to use the `github` method instead of `git` - Standardize quotation marks in changelog titles from single to double quotes - Add new changelog groups for "Refactor", "Build process updates", and "Documentation updates" - Remove the `filters` section that excluded certain commits from the changelog Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 173fe6c commit 17f2a0c

File tree

2 files changed

+14
-45
lines changed

2 files changed

+14
-45
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
go-version-file: go.mod
2121
check-latest: true
2222
- name: Setup golangci-lint
23-
uses: golangci/golangci-lint-action@v4
23+
uses: golangci/golangci-lint-action@v5
2424
with:
2525
version: latest
2626
args: --verbose

.goreleaser.yaml

+13-44
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,26 @@
1-
project_name: queue
2-
31
builds:
4-
-
5-
# If true, skip the build.
6-
# Useful for library projects.
7-
# Default is false
8-
skip: true
2+
- skip: true
93

104
changelog:
11-
# Set it to true if you wish to skip the changelog generation.
12-
# This may result in an empty release notes on GitHub/GitLab/Gitea.
13-
skip: false
14-
15-
# Changelog generation implementation to use.
16-
#
17-
# Valid options are:
18-
# - `git`: uses `git log`;
19-
# - `github`: uses the compare GitHub API, appending the author login to the changelog.
20-
# - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
21-
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
22-
#
23-
# Defaults to `git`.
24-
use: git
25-
26-
# Sorts the changelog by the commit's messages.
27-
# Could either be asc, desc or empty
28-
# Default is empty
29-
sort: asc
30-
31-
# Group commits messages by given regex and title.
32-
# Order value defines the order of the groups.
33-
# Proving no regex means all commits will be grouped under the default group.
34-
# Groups are disabled when using github-native, as it already groups things by itself.
35-
#
36-
# Default is no groups.
5+
use: github
376
groups:
387
- title: Features
398
regexp: "^.*feat[(\\w)]*:+.*$"
409
order: 0
41-
- title: 'Bug fixes'
10+
- title: "Bug fixes"
4211
regexp: "^.*fix[(\\w)]*:+.*$"
4312
order: 1
44-
- title: 'Enhancements'
13+
- title: "Enhancements"
4514
regexp: "^.*chore[(\\w)]*:+.*$"
4615
order: 2
16+
- title: "Refactor"
17+
regexp: "^.*refactor[(\\w)]*:+.*$"
18+
order: 3
19+
- title: "Build process updates"
20+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
21+
order: 4
22+
- title: "Documentation updates"
23+
regexp: ^.*?docs?(\(.+\))??!?:.+$
24+
order: 4
4725
- title: Others
4826
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)