File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 1- #! /bin/sh
2- # commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works.
3- . " $( dirname $0 ) /_/husky.sh"
4-
51# Ahead of creating the commit, validate the commit message.
62yarn -s ng-dev commit-message pre-commit-validate --file $1;
Original file line number Diff line number Diff line change 1- #! /bin/sh
2- . " $( dirname " $0 " ) /_/husky.sh"
3-
41# Allow for the formatting command to fail without exiting the script.
52set +e
63
74yarn -s ng-dev format staged 2>/dev/null
85
96if [ $? -ne 0 ]; then
107 echo "WARNING: failed to run file formatting (ng-dev format staged)"
11- fi
8+ fi
Original file line number Diff line number Diff line change 1- #! /bin/sh
2- # prepare-commit-msg git hook, see https://typicode.github.io/husky/#/ for more on how husky works.
3- . " $( dirname $0 ) /_/husky.sh"
4-
51# When a commit is started, restore the previous commit message draft if it exists.
62yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;
You can’t perform that action at this time.
0 commit comments