summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-04-19 13:27:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-04-19 13:28:19 +0000
commita4dc387bfbc56ba97701bfdde34b033ada9bb5c1 (patch)
tree3e2e000f25057e78e8789657216afe02f28d9946 /examples
parentReleasing debian version 0.15.0-1. (diff)
downloadgitlint-a4dc387bfbc56ba97701bfdde34b033ada9bb5c1.tar.xz
gitlint-a4dc387bfbc56ba97701bfdde34b033ada9bb5c1.zip
Merging upstream version 0.15.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/my_commit_rules.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/my_commit_rules.py b/examples/my_commit_rules.py
index 5a66c94..2805501 100644
--- a/examples/my_commit_rules.py
+++ b/examples/my_commit_rules.py
@@ -40,8 +40,8 @@ class BodyMaxLineCount(CommitRule):
class SignedOffBy(CommitRule):
- """ This rule will enforce that each commit 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 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".
"""
# A rule MUST have a human friendly name
@@ -54,10 +54,10 @@ class SignedOffBy(CommitRule):
self.log.debug("SignedOffBy: This will be visible when running `gitlint --debug`")
for line in commit.message.body:
- if line.startswith("Signed-Off-By"):
+ if line.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)]
class BranchNamingConventions(CommitRule):