File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -782,7 +782,7 @@ def check_commit_msg(message, files):
782
782
does not contain required marker.
783
783
784
784
'''
785
- if re .match (r'^Merge branch \'.+?\'( of [^\s]+)? into .+' , message ):
785
+ if re .match (r'^Merge ( branch|commit) \'.+?\'( of [^\s]+)? into .+' , message ):
786
786
# Not checking for JIRA in commit message generated by github
787
787
pass
788
788
elif NO_JIRA_MARKER not in message :
@@ -838,6 +838,7 @@ def _test(input, is_good=True):
838
838
_test ("Merge branch 'main' into my_branch" )
839
839
_test ("Merge branch 'branch_1' into branch_2" )
840
840
_test ("Merge branch 'jira_pyapi_123_abc' of github.com:ccdc-confidential/cpp-apps-main into jira_pyapi_123_abc" )
841
+ _test ("Merge commit 'abcdef' into jira_mer_123_abc" )
841
842
_test ('I forgot to add the jira marker!' , False )
842
843
_test ('Close but no cigar abc-1234' , False )
843
844
You can’t perform that action at this time.
0 commit comments