diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-04-19 13:27:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-04-19 13:27:09 +0000 |
commit | 643bc3635e75121826fb878f46ca540ce210bace (patch) | |
tree | df410cfc4a0c1c67068d40f4d10c8ca5574a4b1c /gitlint/contrib/rules/signedoff_by.py | |
parent | Adding upstream version 0.15.0. (diff) | |
download | gitlint-643bc3635e75121826fb878f46ca540ce210bace.tar.xz gitlint-643bc3635e75121826fb878f46ca540ce210bace.zip |
Adding upstream version 0.15.1.upstream/0.15.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint/contrib/rules/signedoff_by.py')
-rw-r--r-- | gitlint/contrib/rules/signedoff_by.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gitlint/contrib/rules/signedoff_by.py b/gitlint/contrib/rules/signedoff_by.py index c2034e7..139a1b1 100644 --- a/gitlint/contrib/rules/signedoff_by.py +++ b/gitlint/contrib/rules/signedoff_by.py @@ -3,8 +3,8 @@ from gitlint.rules import CommitRule, RuleViolation class SignedOffBy(CommitRule): - """ This rule will enforce that each commit body contains a "Signed-Off-By" line. - We keep things simple here and just check whether the commit body contains a line that starts with "Signed-Off-By". + """ This rule will enforce that each commit body contains a "Signed-off-by" line. + We keep things simple here and just check whether the commit body contains a line that starts with "Signed-off-by". """ name = "contrib-body-requires-signed-off-by" @@ -12,7 +12,7 @@ class SignedOffBy(CommitRule): def validate(self, commit): for line in commit.message.body: - if line.startswith("Signed-Off-By"): + if line.lower().startswith("signed-off-by"): return [] - return [RuleViolation(self.id, "Body does not contain a 'Signed-Off-By' line", line_nr=1)] + return [RuleViolation(self.id, "Body does not contain a 'Signed-off-by' line", line_nr=1)] |