how do i configure a git hook (or equivalent) to r...
# how-do-i
b
how do i configure a git hook (or equivalent) to run a linter when running gt submit that blocks the upload if the linter exits with an error
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
s
I have a standard commit hook that runs when using the
gt mod
command. I wasn't aware that submit ran
git commit
.
p
hey Bailey, the
gt
CLI will run git hooks by default so you can add a script for that in
.git/hooks/pre-commit