You've already forked go-semantic-release
fix(git): Added git filter for project
Ensures angular style commit messages are applied.
This commit is contained in:
11
.githooks/commit-msg
Executable file
11
.githooks/commit-msg
Executable 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
|
||||
Reference in New Issue
Block a user