Skip to content

Commit 74da028

Browse files
committed
chore: update configuration files and dependencies
- Remove `depguard` linter from `.golangci.yml` - Remove `project_name: queue` from `.goreleaser.yaml` - Change `skip` to `disable` in `.goreleaser.yaml` - Change `use: git` to `use: github` in `.goreleaser.yaml` - Update regex patterns for changelog titles in `.goreleaser.yaml` - Add new changelog titles: `Refactor`, `Build process updates`, and `Documentation updates` in `.goreleaser.yaml` - Remove changelog filters section from `.goreleaser.yaml` - Update `github.com/stretchr/testify` to v1.10.0 in `go.mod` - Update `go.uber.org/goleak` to v1.3.0 in `go.mod` Signed-off-by: appleboy <[email protected]>
1 parent 7df0c3e commit 74da028

File tree

4 files changed

+23
-34
lines changed

4 files changed

+23
-34
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ linters:
44
fast: false
55
enable:
66
- bodyclose
7-
- depguard
87
- dogsled
98
- dupl
109
- errcheck

.goreleaser.yaml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
project_name: queue
2-
31
builds:
4-
-
5-
# If true, skip the build.
2+
- # If true, skip the build.
63
# Useful for library projects.
74
# Default is false
85
skip: true
96

107
changelog:
118
# Set it to true if you wish to skip the changelog generation.
129
# This may result in an empty release notes on GitHub/GitLab/Gitea.
13-
skip: false
10+
disable: false
1411

1512
# Changelog generation implementation to use.
1613
#
@@ -21,7 +18,7 @@ changelog:
2118
# - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
2219
#
2320
# Defaults to `git`.
24-
use: git
21+
use: github
2522

2623
# Sorts the changelog by the commit's messages.
2724
# Could either be asc, desc or empty
@@ -36,22 +33,22 @@ changelog:
3633
# Default is no groups.
3734
groups:
3835
- title: Features
39-
regexp: "^.*feat[(\\w)]*:+.*$"
36+
regexp: "^.*feat[(\\w-)]*:+.*$"
4037
order: 0
41-
- title: 'Bug fixes'
42-
regexp: "^.*fix[(\\w)]*:+.*$"
38+
- title: "Bug fixes"
39+
regexp: "^.*fix[(\\w-)]*:+.*$"
4340
order: 1
44-
- title: 'Enhancements'
45-
regexp: "^.*chore[(\\w)]*:+.*$"
41+
- title: "Enhancements"
42+
regexp: "^.*chore[(\\w-)]*:+.*$"
4643
order: 2
44+
- title: "Refactor"
45+
regexp: "^.*refactor[(\\w-)]*:+.*$"
46+
order: 3
47+
- title: "Build process updates"
48+
regexp: ^.*?(build|ci)(\(.+\))??!?:.+$
49+
order: 4
50+
- title: "Documentation updates"
51+
regexp: ^.*?docs?(\(.+\))??!?:.+$
52+
order: 4
4753
- title: Others
4854
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

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ go 1.18
55
require (
66
github.com/golang-queue/queue v0.1.4-0.20221230133718-0314ef173f98
77
github.com/nsqio/go-nsq v1.1.0
8-
github.com/stretchr/testify v1.8.2
9-
go.uber.org/goleak v1.2.1
8+
github.com/stretchr/testify v1.10.0
9+
go.uber.org/goleak v1.3.0
1010
)
1111

1212
require (

go.sum

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
21
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
32
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
43
github.com/goccy/go-json v0.10.0 h1:mXKd9Qw4NuzShiRlOXKews24ufknHO7gx30lsDyokKA=
@@ -15,17 +14,11 @@ github.com/nsqio/go-nsq v1.1.0 h1:PQg+xxiUjA7V+TLdXw7nVrJ5Jbl3sN86EhGCQj4+FYE=
1514
github.com/nsqio/go-nsq v1.1.0/go.mod h1:vKq36oyeVXgsS5Q8YEO7WghqidAVXQlcFxzQbQTuDEY=
1615
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1716
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
18-
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
19-
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
20-
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
21-
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
22-
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
23-
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
24-
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
25-
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
26-
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
17+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
18+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
19+
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
20+
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
2721
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2822
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
29-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
3023
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
3124
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)