Skip to content

Commit 3256255

Browse files
committed
chore: refine release process and CI configuration
- Update the GitHub Actions workflow to use `golangci-lint-action@v5` instead of `v4` - Remove the `project_name` from `.goreleaser.yaml` - Delete changelog configuration related to skipping generation, sort order, and grouping in `.goreleaser.yaml` - Update regular expressions for changelog categories `feat` and `fix` in `.goreleaser.yaml` - Replace the `Refactor` changelog category with `Enhancements` and add new categories for `Refactor`, `Build process updates`, and `Documentation updates` in `.goreleaser.yaml` - Remove filters that exclude commits from the changelog based on commit message content in `.goreleaser.yaml` Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent fe66e5b commit 3256255

File tree

2 files changed

+14
-41
lines changed

2 files changed

+14
-41
lines changed

.github/workflows/go.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
go-version-file: go.mod
2424
check-latest: true
2525
- name: Setup golangci-lint
26-
uses: golangci/golangci-lint-action@v4
26+
uses: golangci/golangci-lint-action@v5
2727
with:
2828
version: latest
2929
args: --verbose

.goreleaser.yaml

+13-40
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,29 @@
1-
project_name: authz
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`.
238
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.
369
groups:
3710
- title: Features
38-
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
11+
regexp: "^.*feat[(\\w)]*:+.*$"
3912
order: 0
4013
- title: "Bug fixes"
41-
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
14+
regexp: "^.*fix[(\\w)]*:+.*$"
4215
order: 1
43-
- title: "Refactor"
44-
regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+$'
16+
- title: "Enhancements"
17+
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
4729
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)