Skip to content

Commit

Permalink
Do not validate merge commit message #24
Browse files Browse the repository at this point in the history
  • Loading branch information
mverleg committed Apr 28, 2018
1 parent 9b83ee9 commit 9a1219b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/hooks/utils/message_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def __init__(self, msg):


def validate_title(title):
if title[:5].lower() == 'merge':
return
if title[0] in string.ascii_lowercase:
raise ValidationError('Commit message title should start with a capital letter')
if title[-1] == '.':
Expand Down Expand Up @@ -64,6 +62,8 @@ def validate_tags(tags):


def validate_commit_message(msg):
if msg[:5].lower() == 'merge':
return
title, tags, body = split_msg(msg)
validate_title(title)
validate_tags(tags)
Expand Down

0 comments on commit 9a1219b

Please sign in to comment.