mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-23 01:14:38 +07:00
Add pre-commit hook
This commit is contained in:
parent
994a9242ae
commit
34b28e8f5d
3
Makefile
3
Makefile
@ -29,3 +29,6 @@ lint:
|
||||
# TODO (feature) Add lint checks for everything
|
||||
make -C metal lint
|
||||
make -C infra lint
|
||||
|
||||
hooks:
|
||||
cp ./scripts/hooks/* .git/hooks/
|
||||
|
4
scripts/hooks/pre-commit
Executable file
4
scripts/hooks/pre-commit
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
make docs
|
||||
git add docs
|
Loading…
Reference in New Issue
Block a user