Skip to content

Commit 68d854e

Browse files
committed
27: fix: husky
1 parent 81510be commit 68d854e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.husky/commit-msg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ KN='\033[0m'
44
BBlue='\033[1;34m'
55
BRed='\033[1;31m'
66

7-
REGEX_ISSUE_ID="[a-zA-Z0-9,._-]+-[0-9]+"
7+
REGEX_ISSUE_ID="[0-9]+"
88

99
BRANCH_NAME=$(git symbolic-ref --short HEAD)
1010
ISSUE_ID=$(echo "$BRANCH_NAME" | grep -o -E "$REGEX_ISSUE_ID")
@@ -16,7 +16,7 @@ if [ -z "$ISSUE_ID" ]; then
1616
fi
1717

1818
case "$COMMIT_MESSAGE" in
19-
"$ISSUE_ID"*)
19+
"PHPAY-$ISSUE_ID"*)
2020
exit 0
2121
;;
2222
esac

0 commit comments

Comments
 (0)