File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88commitTitle=" $( cat $1 | head -n1) "
99
1010# ignore merge requests
11- if echo " $commitTitle " | grep -qE " ^ Merge branch \' " ; then
11+ if echo " $commitTitle " | grep -qE " Merge branch" ; then
1212 echo " Commit hook: ignoring branch merge"
1313 exit 0
1414fi
1515
1616# check semantic versioning scheme
17- if ! echo " $commitTitle " | grep -qE ' ^(?:feat|fix|docs|style|refactor|perf|test|chore)\(?(?:\w+|\s|\-|_)?\)?:\s\w+' ; then
17+ if ! echo " $commitTitle " | grep -qE ' ^(?:| feat|fix|docs|style|refactor|perf|test|chore)\(?(?:\w+|\s|\-|_)?\)?:\s\w+' ; then
1818 echo " Your commit title did not follow semantic versioning: $commitTitle "
1919 echo " Please see https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commit-message-format"
2020 exit 1
You can’t perform that action at this time.
0 commit comments