Skip to content

Commit c545fff

Browse files
committed
TT-00 fix: change commit message regex
1 parent 26ddb20 commit c545fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons/git_hooks/enforce_semantic_commit_msg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
SUCCESS_MSG = "Commit succeed!. Semantic commit message is correct."
1515

16-
COMMIT_MSG_REGEX = r'(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert)(\([\w\-]+\))?:\s.*'
16+
COMMIT_MSG_REGEX = r'(TT-)[0-9].*(build|ci|docs|feat|fix|perf|refactor|style|test|chore|revert)(\([\w\-]+\))?:\s.*'
1717

1818
# Get the commit message file
1919
commit_msg_file = open(sys.argv[1]) # The first argument is the file

0 commit comments

Comments
 (0)