Skip to content

Commit a580e5b

Browse files
committed
ci: refine build and release processes
- Update the GitHub Actions workflow to use `golangci-lint-action@v5` instead of `v4` - Remove the `project_name` from `.goreleaser.yaml` - Simplify the `builds` section by removing comments and keeping the `skip: true` directive - Change the changelog configuration to use the `github` method instead of `git` - Add new changelog groups for refactoring, build process updates, and documentation updates - Remove changelog filters that excluded commits with messages matching certain patterns (e.g., `docs`, `CICD`, `typo`) Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent 113f163 commit a580e5b

2 files changed

Lines changed: 12 additions & 42 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
ref: ${{ github.ref }}
2727

2828
- name: golangci-lint
29-
uses: golangci/golangci-lint-action@v4
29+
uses: golangci/golangci-lint-action@v5
3030
with:
3131
version: latest
3232
args: --verbose --timeout 10m

.goreleaser.yaml

Lines changed: 11 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,8 @@
1-
project_name: queue
2-
31
builds:
4-
- # If true, skip the build.
5-
# Useful for library projects.
6-
# Default is false
7-
skip: true
2+
- skip: true
83

94
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.
5+
use: github
366
groups:
377
- title: Features
388
regexp: "^.*feat[(\\w)]*:+.*$"
@@ -43,14 +13,14 @@ changelog:
4313
- title: "Enhancements"
4414
regexp: "^.*chore[(\\w)]*:+.*$"
4515
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
4625
- title: Others
4726
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)