File tree 3 files changed +1
-12
lines changed
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
-
5
1
# Ahead of creating the commit, validate the commit message.
6
2
yarn -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
-
4
1
# Allow for the formatting command to fail without exiting the script.
5
2
set +e
6
3
7
4
yarn -s ng-dev format staged 2>/dev/null
8
5
9
6
if [ $? -ne 0 ]; then
10
7
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
-
5
1
# When a commit is started, restore the previous commit message draft if it exists.
6
2
yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;
You can’t perform that action at this time.
0 commit comments