Skip to content

Commit bcb4007

Browse files
yyx990803hefeng
authored and
hefeng
committed
build: add types as allowed commit type
1 parent 53c0c77 commit bcb4007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/git-hooks/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Validate commit log
4-
commit_regex='^Merge.+|(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?: .{1,50}'
4+
commit_regex='^Merge.+|(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|types)(\(.+\))?: .{1,50}'
55

66
if ! grep -iqE "$commit_regex" "$1"; then
77
echo

0 commit comments

Comments
 (0)