fix(git): Added git filter for project

Ensures angular style commit messages are applied.
This commit is contained in:
2024-04-02 11:51:42 +13:00
parent 141f297c87
commit 0b309228d3
2 changed files with 96 additions and 0 deletions

11
.githooks/commit-msg Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
# Run the script and get the return code if successful of if fails
./scripts/commit-filter-check.sh && rc=$? || rc=$?
echo return code : $rc
if [ ${rc} == 1 ]; then
echo "Script return code 1 so commit failed"
exit 1
else
echo "No error returned so commit successful"
fi