We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f6ce78 commit ad1a80eCopy full SHA for ad1a80e
.github/workflows/golangci-lint.yaml
@@ -1,26 +1,26 @@
1
name: golangci-lint
2
on:
3
- push:
4
- branches:
5
- - main
6
- - master
7
pull_request:
8
9
permissions:
10
contents: read
11
- pull-requests: read
12
13
jobs:
14
golangci:
15
name: lint
16
runs-on: ubuntu-latest
17
steps:
18
- uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+ filter: blob:none
19
- uses: actions/setup-go@v6
20
with:
21
go-version-file: 'go.mod'
22
- name: golangci-lint
23
uses: golangci/golangci-lint-action@v9.2.0
24
25
version: v2.7.2
26
- only-new-issues: true
+ # only-new-issues does not work on large PRs
+ # https://github.com/golangci/golangci-lint-action/issues/996
+ args: --new-from-rev=${{ github.event.pull_request.base.sha }}
0 commit comments