We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a727fa2 commit a130b1aCopy full SHA for a130b1a
1 file changed
.github/hooks/commit-msg
100644
100755
@@ -4,7 +4,7 @@
4
msg_file="$1"
5
commit_msg="$(<"$msg_file")"
6
7
-regex='^(feat|fix|chore|docs|style|refactor|test|perf|ci|build|revert) \( \#\d+ \) : .+$'
+regex="^(feat|fix|chore|docs|style|refactor|test|perf|ci|build|revert) *\([[:space:]]*#[[:space:]]*[0-9]+[[:space:]]*\) *: .+$"
8
9
if [[ ! $commit_msg =~ $regex ]]; then
10
echo "❌ 메시지 형식 에러: 타입 ( #이슈 ) : 설명"
0 commit comments