Skip to content

Commit efa14ab

Browse files
authored
chore(ci): goheader linting only runs in CI on changed or new files (#100)
1 parent 9e452f2 commit efa14ab

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88
workflow_dispatch:
99

1010
permissions:
11+
# Required: allow read access to the content for analysis.
1112
contents: read
13+
# Optional: allow read access to pull request. Use with `only-new-issues` option.
14+
pull-requests: read
1215

1316
jobs:
1417
golangci:
@@ -23,3 +26,5 @@ jobs:
2326
uses: golangci/golangci-lint-action@v6
2427
with:
2528
version: v1.60
29+
only-new-issues: true
30+
args: --enable goheader

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ linters:
1616
- gci
1717
- gocheckcompilerdirectives
1818
- gofmt
19-
- goheader
2019
- goimports
2120
- gomodguard
2221
- gosec

.libevm-header

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright {{ MOD-YEAR }} the libevm authors.
1+
Copyright {{ MOD-YEAR-RANGE }} the libevm authors.
22

33
The libevm additions to go-ethereum are free software: you can redistribute
44
them and/or modify them under the terms of the GNU Lesser General Public License

0 commit comments

Comments
 (0)