Commit 70a1a1a2 authored by iOS-银 恭敬's avatar iOS-银 恭敬

新增字数限制

parent 51ceb8e0
......@@ -7,6 +7,8 @@ import subprocess
import reviewboard
maxSubjectLen = 50
leastSubjectLen = 10
typesList = ['feat','fix','docs','style','refactor','test','chore']
MERGE_BRANCH_TEXT = "Merge branch"
......@@ -135,6 +137,11 @@ class CheckMsgStyle(object):
print "你的subject是:%s" % subjectContent
reviewboard.reset_review_state()
sys.exit(1)
if subjectLen<leastSubjectLen:
print "subject最少%s个字,你超出了%d个字" % (leastSubjectLen,subjectLen-leastSubjectLen)
print "你的subject是:%s" % subjectContent
reviewboard.reset_review_state()
sys.exit(1)
#5 JIRA模糊匹配
blur = self.__check_is_blur_JIRAID(content, typeContent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment