Skip to content

Commit

Permalink
#0: Permit merges and --fixup (#14698)
Browse files Browse the repository at this point in the history
  • Loading branch information
afuller-TT authored Nov 5, 2024
1 parent 819b8d3 commit 3861156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/git_hooks/verify_commit_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"""
FORMAT_MSG = "#<GH ISSUE NUMBER> or MET-<JIRA ISSUE NUMBER>: <non-empty message>"
VALID_PREFIXES = "|".join(["#", "MET-"])
MATCHING_REGEX = f"^({VALID_PREFIXES})(\d+\:\ .)"
STANDARD_PREFIXES = "|".join(["Merge remote-tracking branch ", "fixup! "])
MATCHING_REGEX = f"^(({VALID_PREFIXES})(\d+\:\ .)|({STANDARD_PREFIXES}))"


def print_commit_msg(commit_msg_whole):
Expand Down

0 comments on commit 3861156

Please sign in to comment.