Skip to content

Commit

Permalink
Add pre-commit hook to Freight
Browse files Browse the repository at this point in the history
In order to make sure I always have a working version of freight locally
before pushing I've added a local check so that on every commit it will
run the justfile like in CI to make sure it works. By making localhost
match CI I can ensure that everything will work before pushing meaning I
can be more confident to just push directly to main.
  • Loading branch information
mgattozzi committed Jul 23, 2023
1 parent 743512e commit 8db3b4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hooks/link.sh
@@ -0,0 +1,2 @@
#!/bin/sh
ln -s $(pwd)/hooks/pre-commit.sh $(pwd)/.git/hooks/pre-commit
2 changes: 2 additions & 0 deletions hooks/pre-commit.sh
@@ -0,0 +1,2 @@
#!/bin/sh
just run

0 comments on commit 8db3b4d

Please sign in to comment.