Skip to content

Commit 5011247

Browse files
committed
chore(lefthook): run hook jobs only on appropriate files changes
1 parent a5694aa commit 5011247

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.lefthook.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ pre-commit:
3232
jobs:
3333
- name: tidy
3434
run: go mod tidy
35+
glob:
36+
- go.mod
37+
- go.sum
3538
stage_fixed: true
3639
- name: lint & format
3740
run: golangci-lint run ./...
41+
glob: "*.go"
3842
stage_fixed: true
3943
- name: format markdown
4044
glob: "*md"

0 commit comments

Comments
 (0)