We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36d76a9 commit e65dd5fCopy full SHA for e65dd5f
1 file changed
main/githooks.py
@@ -764,7 +764,10 @@ def check_commit_msg(message, files):
764
does not contain required marker.
765
766
'''
767
- if NO_JIRA_MARKER not in message:
+ if re.match(r'$Merge branch \'.+?\' into .+', message):
768
+ # Not checking for JIRA in commit message generated by github
769
+ pass
770
+ elif NO_JIRA_MARKER not in message:
771
if jira_id_pattern.search(message) is None:
772
_fail('Every commit should contain a Jira issue ID or the text '
773
f'{NO_JIRA_MARKER}')
0 commit comments