diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-09-07 22:36:17 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-07 20:46:34 +0100 |
commit | 24ed8511dd87bc53d65a7e5a569356336821af08 (patch) | |
tree | 50c0c683a771fbb7f7b47677fcd7a425ebbb5839 /Meta/lint-commit.sh | |
parent | 17ab44e7d718f9f12b91c35bc37ab7eec5521078 (diff) | |
download | serenity-24ed8511dd87bc53d65a7e5a569356336821af08.zip |
CI+Meta: Add Signed-off-by tag filter to the commit message linter
Diffstat (limited to 'Meta/lint-commit.sh')
-rwxr-xr-x | Meta/lint-commit.sh | 5 |
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 |