perf(hooks): lint only changed Go packages (#3860)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-09-22 09:50:15 +01:00
committed by GitHub
parent 82d52844b7
commit 6e3fc6cc2a
8 changed files with 522 additions and 3 deletions
+4 -3
View File
@@ -49,11 +49,12 @@ repos:
pass_filenames: true
- id: go-lint
name: Go lint (PR changed code)
entry: bash -c 'unset GIT_DIR GIT_WORK_TREE; base=$(scripts/resolve-go-lint-base --comparison-base) || exit $?; cd apps/backend && golangci-lint run ./... --new-from-rev="$base" --timeout=5m'
name: Go lint (changed packages)
entry: bash scripts/lint-go-changed
language: system
files: ^apps/backend/.*\.go$
pass_filenames: false
pass_filenames: true
require_serial: true
# Web app (TypeScript/React) hooks
- repo: local