We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da1898 commit 98614faCopy full SHA for 98614fa
check.sh
@@ -1,5 +1,11 @@
1
#!/bin/bash -e
2
3
+if [[ $ZSH_NAME != "" ]]; then
4
+ setopt BASH_REMATCH
5
+ setopt RE_MATCH_PCRE
6
+ setopt KSH_ARRAYS
7
+fi
8
+
9
source ./validator.sh
10
11
COMMITS=`git log --no-merges --pretty="%H" --no-decorate $1`
validator.sh
readonly HEADER_PATTERN="^([^\(]+)\(([^\)]+)\): (.+)$"
readonly TYPE_PATTERN="^(feat|fix|docs|refactor|test|chore|revert)$"
readonly SCOPE_PATTERN="^([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
0 commit comments