MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / commit_message_has_signoff

Function commit_message_has_signoff

scripts/dco_check.py:7–20  ·  view source on GitHub ↗

Check if the commit message has a Signed-off-by line. Args: message (str): The commit message. Returns: bool: True if the message is valid, False otherwise.

(message)

Source from the content-addressed store, hash-verified

5
6
7def commit_message_has_signoff(message):
8 """
9 Check if the commit message has a Signed-off-by line.
10
11 Args:
12 message (str): The commit message.
13
14 Returns:
15 bool: True if the message is valid, False otherwise.
16 """
17 for line in message.splitlines():
18 if re.match(r'^Signed-off-by: .+ <.+>$', line):
19 return True
20 return False
21
22
23def main():

Callers 1

mainFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected