mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-18 00:26:11 -04:00
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])
(cherry picked from commit 79ae467973)
This commit is contained in:
parent
bc1bc38731
commit
11f07ca582
1 changed files with 3 additions and 2 deletions
|
|
@ -125,8 +125,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:]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue