We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6bc5a0b + b1af37e commit 322fa7eCopy full SHA for 322fa7e
1 file changed
contrib/util/commit-msg
@@ -6,6 +6,7 @@
6
set -eo pipefail
7
8
RED=$(tput setaf 1)
9
+YELLOW=$(tput setaf 3)
10
NORMAL=$(tput sgr0)
11
subject_regex="^(feat|fix|docs|style|ref|test|chore)\(.+\): [\w\s\d]*"
12
capital_regex="^.+\): [a-z][\w\s\d]*"
@@ -51,10 +52,9 @@ if ! [[ $SUBJECT =~ $capital_regex ]]; then
51
52
fi
53
54
if [[ ${#SUBJECT} -gt 50 ]]; then
- echo "${RED}ERROR - Subject can't be longer than 50 characters."
55
+ echo "${YELLOW}WARNING - Subject shouldn't be longer than 50 characters."
56
echo ""
57
echo "Read more at http://docs.deis.io/en/latest/contributing/standards/$NORMAL"
- exit 1
58
59
60
if [[ ${#MESSAGE[2]} -gt 0 ]]; then
0 commit comments