Browse Source
Update .githooks/commit-msg
Co-authored-by: Jean Pierre Dudey <jeandudey@hotmail.com>
PASS1-125
Ken Carpenter
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
.githooks/commit-msg
|
@ -1,7 +1,7 @@ |
|
|
#!/usr/bin/env bash |
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
|
TEAM_PREFIX='PASS1' |
|
|
TEAM_PREFIX='PASS1' |
|
|
commit_regex="($TEAM_PREFIX-[0-9]+:\ )" |
|
|
commit_regex="^($TEAM_PREFIX-[0-9]+:\ )" |
|
|
|
|
|
|
|
|
if ! `grep -iqE "$commit_regex" "$1"`; then |
|
|
if ! `grep -iqE "$commit_regex" "$1"`; then |
|
|
echo "=========================================================================================" >&2 |
|
|
echo "=========================================================================================" >&2 |
|
|