8000 tools/verifygitlog.py: Allow long co-author and sign-off names. · micropython/micropython@4208970 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4208970

Browse files
DvdGiessendpgeorge
authored andcommitted
tools/verifygitlog.py: Allow long co-author and sign-off names.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
1 parent 51b821c commit 4208970

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/verifygitlog.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ def verify_message_body(raw_body, err):
105105

106106
# Message body lines.
107107
for line in raw_body[2:]:
108-
# Long lines with URLs are exempt from the line length rule.
109-
if len(line) >= 76 and "://" not in line:
108+
# Long lines with URLs or human names are exempt from the line length rule.
109+
if len(line) >= 76 and not (
110+
"://" in line
111+
or line.startswith("Co-authored-by: ")
112+
or line.startswith("Signed-off-by: ")
113+
):
110114
err.error("Message lines should be 75 or less characters: " + line)
111115

112116
if not raw_body[-1].startswith("Signed-off-by: ") or "@" not in raw_body[-1]:

0 commit comments

Comments
 (0)
0