We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ae9b3c commit 3143f89Copy full SHA for 3143f89
1 file changed
commit-msg
@@ -8,13 +8,13 @@ fi
8
commitTitle="$(cat $1 | head -n1)"
9
10
# ignore merge requests
11
-if echo "$commitTitle" | grep -qE "^Merge branch \'"; then
+if echo "$commitTitle" | grep -qE "Merge branch"; then
12
echo "Commit hook: ignoring branch merge"
13
exit 0
14
fi
15
16
# check semantic versioning scheme
17
-if ! echo "$commitTitle" | grep -qE '^(?:feat|fix|docs|style|refactor|perf|test|chore)\(?(?:\w+|\s|\-|_)?\)?:\s\w+'; then
+if ! echo "$commitTitle" | grep -qE '^(?:|feat|fix|docs|style|refactor|perf|test|chore)\(?(?:\w+|\s|\-|_)?\)?:\s\w+'; then
18
echo "Your commit title did not follow semantic versioning: $commitTitle"
19
echo "Please see https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commit-message-format"
20
exit 1
0 commit comments