Skip to content

Commit a130b1a

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/hooks/commit-msg

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

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

0 commit comments

Comments
 (0)