Skip to content

Commit

Permalink
Fix for the commit message validation #21
Browse files Browse the repository at this point in the history
  • Loading branch information
mverleg committed May 12, 2018
1 parent 8660184 commit 3717258
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/hooks/utils/message_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def __init__(self, msg):


def validate_title(title):
if not title:
raise ValidationError('Commit message should have at least one line (the title), with any hash(#) appearing at the end')
if title[0] in string.ascii_lowercase:
raise ValidationError('Commit message title should start with a capital letter')
if title[-1] == '.':
Expand Down

0 comments on commit 3717258

Please sign in to comment.