]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
danger: relax rules for single-line commits
authorTom Krizek <tkrizek@isc.org>
Thu, 26 Jan 2023 12:04:40 +0000 (13:04 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 27 Jan 2023 13:17:06 +0000 (14:17 +0100)
The following are not also accepted as single-line commits without
generating warnings:
- CHANGES/release note may appear in the beginning of the commit message
- Release note may be capitalized
- Allow commits with "GL #" (e.g. Update documentation for [GL #XXXX])

dangerfile.py

index f706d5838989849c8e129c267b881ee3ead7272a..925d0a42146254fbdb805388957ebda9e04c8e67 100644 (file)
@@ -127,8 +127,9 @@ for commit in danger.git.commits:
     if (
         len(message_lines) < 3
         and "fixup! " not in subject
-        and " CHANGES " not in subject
-        and " release note" not in subject
+        and "CHANGES " not in subject
+        and "release note" not in subject.lower()
+        and "GL #" not in subject
     ):
         warn(f"Please write a log message for commit {commit.sha}.")
     for line in message_lines[2:]: