summaryrefslogtreecommitdiff
path: root/tools/verifygitlog.py
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2025-05-14 18:05:06 +0200
committerDamien George <damien@micropython.org>2025-05-15 13:03:11 +1000
commit420897045171305fa36440c08b575ebe3f6d4ef8 (patch)
tree3a2e0aea63b61988bc99d31b3288675e0f3010b4 /tools/verifygitlog.py
parent51b821ce820008b5419bf6889d15d5a7c00a2c99 (diff)
tools/verifygitlog.py: Allow long co-author and sign-off names.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'tools/verifygitlog.py')
-rwxr-xr-xtools/verifygitlog.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/verifygitlog.py b/tools/verifygitlog.py
index f2d3d722d..dba6ebd6d 100755
--- a/tools/verifygitlog.py
+++ b/tools/verifygitlog.py
@@ -105,8 +105,12 @@ def verify_message_body(raw_body, err):
# Message body lines.
for line in raw_body[2:]:
- # Long lines with URLs are exempt from the line length rule.
- if len(line) >= 76 and "://" not in line:
+ # Long lines with URLs or human names are exempt from the line length rule.
+ if len(line) >= 76 and not (
+ "://" in line
+ or line.startswith("Co-authored-by: ")
+ or line.startswith("Signed-off-by: ")
+ ):
err.error("Message lines should be 75 or less characters: " + line)
if not raw_body[-1].startswith("Signed-off-by: ") or "@" not in raw_body[-1]: