File tree Expand file tree Collapse file tree 5 files changed +36
-8
lines changed
Expand file tree Collapse file tree 5 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ jobs:
1616 - name : Set up Go
1717 uses : actions/setup-go@v5
1818 with :
19- go-version : " 1.20 "
19+ go-version : " 1.23 "
2020
2121 - name : Checkout
2222 uses : actions/checkout@v4
2323
2424 - name : Lint
25252626 with :
27- version : v1.53
27+ version : v1.60
2828
2929 - name : Test
3030 run : go test -v ./...
Original file line number Diff line number Diff line change 1414 - name : Set up Go
1515 uses : actions/setup-go@v5
1616 with :
17- go-version : " 1.20 "
17+ go-version : " 1.23 "
1818
1919 - name : Checkout
2020 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 44linters :
55 disable-all : true
66 enable :
7- - deadcode
87 - errcheck
98 - gofmt
109 - goimports
11- - golint
1210 - govet
1311 - ineffassign
12+ - misspell
13+ - revive
1414 - typecheck
1515 - unconvert
16- - varcheck
16+ - unused
1717
1818issues :
1919 exclude-use-default : false
2020 exclude-rules :
2121 - path : cmd/patch2pr/
2222 text : " should have( a package)? comment"
23+ - path : internal/
24+ text : " should have( a package)? comment"
2325
24- linter-settings :
26+ linters-settings :
27+ errcheck :
28+ exclude-functions :
29+ - fmt.Fprintln(os.Stdout)
2530 goimports :
2631 local-prefixes : github.com/bluekeyes/patch2pr
32+ revive :
33+ rules :
34+ # enable all rules from golint
35+ - name : context-keys-type
36+ - name : time-naming
37+ - name : var-declaration
38+ - name : unexported-return
39+ - name : errorf
40+ - name : blank-imports
41+ - name : context-as-argument
42+ - name : dot-imports
43+ - name : error-return
44+ - name : error-strings
45+ - name : error-naming
46+ - name : exported
47+ - name : increment-decrement
48+ - name : var-naming
49+ - name : package-comments
50+ - name : range
51+ - name : receiver-naming
52+ - name : indent-error-flow
Original file line number Diff line number Diff line change 1+ // Package patch2pr converts Git patches in to GitHub pull requests.
12package patch2pr
23
34import (
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ import (
1616 "time"
1717
1818 "github.com/bluekeyes/go-gitdiff/gitdiff"
19+ "github.com/google/go-github/v63/github"
20+
1921 "github.com/bluekeyes/patch2pr"
2022 "github.com/bluekeyes/patch2pr/internal"
21- "github.com/google/go-github/v63/github"
2223)
2324
2425var (
You can’t perform that action at this time.
0 commit comments