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 @@ -830,7 +830,7 @@ def check_commit_msg(message, files):
830
830
does not contain required marker.
831
831
832
832
'''
833
- if re .match (r'^Merge (branch|commit) \'.+?\'( of [^\s]+)? into .+' , message ):
833
+ if re .match (r'^Merge ((remote-tracking )? branch|commit) \'.+?\'( of [^\s]+)? into .+' , message ):
834
834
# Not checking for JIRA or large file in commit message generated by github
835
835
return 0
836
836
@@ -888,6 +888,7 @@ def _test(input, is_good=True):
888
888
_test ("Merge branch 'branch_1' into branch_2" )
889
889
_test ("Merge branch 'jira_pyapi_123_abc' of github.com:ccdc-confidential/cpp-apps-main into jira_pyapi_123_abc" )
890
890
_test ("Merge commit 'abcdef' into jira_mer_123_abc" )
891
+ _test ("Merge remote-tracking branch 'origin/release/2022.1' into merge_from_release" )
891
892
_test ('I forgot to add the jira marker!' , False )
892
893
_test ('Close but no cigar abc-1234' , False )
893
894
You can’t perform that action at this time.
0 commit comments