From: Tom Krizek Date: Thu, 26 Jan 2023 12:04:40 +0000 (+0100) Subject: danger: relax rules for single-line commits X-Git-Tag: v9.19.10~11^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79ae467973fc2d97eadf3c038ef892f7e40e0f0a;p=thirdparty%2Fbind9.git danger: relax rules for single-line commits 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]) --- diff --git a/dangerfile.py b/dangerfile.py index f706d583898..925d0a42146 100644 --- a/dangerfile.py +++ b/dangerfile.py @@ -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:]: