Skip to content

Commit 989fd80

Browse files
committed
git generated commit message for merge conflict fix
NO_JIRA
1 parent 3a10454 commit 989fd80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/githooks.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def check_commit_msg(message, files):
782782
does not contain required marker.
783783
784784
'''
785-
if re.match(r'^Merge branch \'.+?\'( of [^\s]+)? into .+', message):
785+
if re.match(r'^Merge (branch|commit) \'.+?\'( of [^\s]+)? into .+', message):
786786
# Not checking for JIRA in commit message generated by github
787787
pass
788788
elif NO_JIRA_MARKER not in message:
@@ -838,6 +838,7 @@ def _test(input, is_good=True):
838838
_test("Merge branch 'main' into my_branch")
839839
_test("Merge branch 'branch_1' into branch_2")
840840
_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")
841842
_test('I forgot to add the jira marker!', False)
842843
_test('Close but no cigar abc-1234', False)
843844

0 commit comments

Comments
 (0)