summaryrefslogtreecommitdiff
path: root/Meta/lint-commit.sh
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-09-07 22:36:17 +0300
committerLinus Groh <mail@linusgroh.de>2021-09-07 20:46:34 +0100
commit24ed8511dd87bc53d65a7e5a569356336821af08 (patch)
tree50c0c683a771fbb7f7b47677fcd7a425ebbb5839 /Meta/lint-commit.sh
parent17ab44e7d718f9f12b91c35bc37ab7eec5521078 (diff)
downloadserenity-24ed8511dd87bc53d65a7e5a569356336821af08.zip
CI+Meta: Add Signed-off-by tag filter to the commit message linter
Diffstat (limited to 'Meta/lint-commit.sh')
-rwxr-xr-xMeta/lint-commit.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Meta/lint-commit.sh b/Meta/lint-commit.sh
index 6242b67299..1df284f930 100755
--- a/Meta/lint-commit.sh
+++ b/Meta/lint-commit.sh
@@ -46,5 +46,10 @@ while read -r line; do
if [[ $line_length -gt 72 ]] && (echo "$line" | grep -P -v -q "$url_pattern"); then
error "Commit message lines are too long (maximum allowed is 72 characters)"
fi
+
+ if [[ "$line" == "Signed-off-by: "* ]]; then
+ error "Commit body contains a Signed-off-by tag"
+ fi
+
done <"$commit_file"
exit 0