Skip to content

Commit 9c0876f

Browse files
authored
Merge pull request #352 from panjf2000/dev
minor: v2.11.0
2 parents 1217e3e + 160ee0a commit 9c0876f

29 files changed

+2176
-1783
lines changed

.github/release-drafter.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ autolabeler:
4444
title:
4545
- /fix/i
4646
- /bug/i
47-
- /patch/i
47+
- /resolve/i
4848
- label: docs
4949
files:
5050
- '*.md'
@@ -60,6 +60,15 @@ autolabeler:
6060
- /update/i
6161
- /remove/i
6262
- /delete/i
63+
- label: optimization
64+
title:
65+
- /opt:/i
66+
- /refactor/i
67+
- /optimize/i
68+
- /improve/i
69+
- /update/i
70+
- /remove/i
71+
- /delete/i
6372
- label: new feature
6473
title:
6574
- /feat:/i
@@ -75,7 +84,7 @@ autolabeler:
7584
- label: chores
7685
title:
7786
- /chore/i
78-
- /\bmisc\b/i
87+
- /misc/i
7988
- /cleanup/i
8089
- /clean up/i
8190
- label: major

.github/workflows/stale-bot.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Monitor inactive issues and PRs
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
stale-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
actions: write
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
operations-per-run: 50
18+
days-before-issue-stale: 30
19+
days-before-issue-close: 7
20+
stale-issue-label: 'stale'
21+
stale-issue-message: |
22+
This issue is marked as stale because it has been open for 30 days with no activity.
23+
24+
You should take one of the following actions:
25+
- Manually close this issue if it is no longer relevant
26+
- Comment if you have more information to share
27+
28+
This issue will be automatically closed in 7 days if no further activity occurs.
29+
close-issue-message: |
30+
This issue was closed because it has been inactive for 7 days since being marked as stale.
31+
32+
If you believe this is a false alarm, please leave a comment for it or open a new issue, you can also reopen this issue directly if you have permission.
33+
days-before-pr-stale: 21
34+
days-before-pr-close: 7
35+
stale-pr-label: 'stale'
36+
stale-pr-message: |
37+
This PR is marked as stale because it has been open for 21 days with no activity.
38+
39+
You should take one of the following actions:
40+
- Manually close this PR if it is no longer relevant
41+
- Push new commits or comment if you have more information to share
42+
43+
This PR will be automatically closed in 7 days if no further activity occurs.
44+
close-pr-message: |
45+
This PR was closed because it has been inactive for 7 days since being marked as stale.
46+
47+
If you believe this is a false alarm, feel free to reopen this PR or create a new one.
48+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,35 +42,21 @@ jobs:
4242
- name: Setup Go
4343
uses: actions/setup-go@v5
4444
with:
45-
go-version: '^1.16'
45+
go-version: '^1.20'
4646
cache: false
4747

4848
- name: Setup and run golangci-lint
49-
uses: golangci/golangci-lint-action@v4
49+
uses: golangci/golangci-lint-action@v6
5050
with:
51-
version: v1.57.2
51+
version: v1.62.2
5252
args: --timeout 5m -v -E gofumpt -E gocritic -E misspell -E revive -E godot
5353
test:
5454
needs: lint
5555
strategy:
5656
fail-fast: false
5757
matrix:
58-
go: [1.13, 1.22]
58+
go: [1.18, 1.23]
5959
os: [ubuntu-latest, macos-latest, windows-latest]
60-
include:
61-
# TODO(panjf2000): There is an uncanny issue arising when downloading
62-
# go modules on macOS 13 for Go1.13. So we use macOS 12 for now,
63-
# but try to figure it out and use macOS once it's resolved.
64-
# https://github.com/panjf2000/ants/actions/runs/9546726268/job/26310385582
65-
- go: 1.13
66-
os: macos-12
67-
exclude:
68-
# Starting macOS 14 GitHub Actions runners are arm-based,
69-
# but Go didn't support arm64 until 1.16. Thus, we must
70-
# replace the macOS 14 runner with macOS 12 runner for Go 1.13.
71-
# Ref: https://github.com/actions/runner-images/issues/9741
72-
- go: 1.13
73-
os: macos-latest
7460
name: Go ${{ matrix.go }} @ ${{ matrix.os }}
7561
runs-on: ${{ matrix.os}}
7662
steps:
@@ -101,7 +87,7 @@ jobs:
10187
run: go test -v -race -coverprofile="codecov.report" -covermode=atomic
10288

10389
- name: Upload code coverage report to Codecov
104-
uses: codecov/codecov-action@v4
90+
uses: codecov/codecov-action@v5
10591
with:
10692
file: ./codecov.report
10793
flags: unittests

0 commit comments

Comments
 (0)