Skip to content

Commit 690639e

Browse files
committed
refactor ( #15 ) : commit-msg 정규식 수정
1 parent a130b1a commit 690639e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/hooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
msg_file="$1"
55
commit_msg="$(<"$msg_file")"
66

7-
regex="^(feat|fix|chore|docs|style|refactor|test|perf|ci|build|revert) *\([[:space:]]*#[[:space:]]*[0-9]+[[:space:]]*\) *: .+$"
7+
regex="^(feat|fix|chore|docs|style|refactor|test|perf|ci|build|revert) \\( #[0-9]+ \\) : .+$"
88

99
if [[ ! $commit_msg =~ $regex ]]; then
1010
echo "❌ 메시지 형식 에러: 타입 ( #이슈 ) : 설명"

0 commit comments

Comments
 (0)