mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
CI+Meta: Add Signed-off-by tag filter to the commit message linter
This commit is contained in:
parent
17ab44e7d7
commit
24ed8511dd
Notes:
sideshowbarker
2024-07-18 04:29:52 +09:00
Author: https://github.com/IdanHo
Commit: 24ed8511dd
Pull-request: https://github.com/SerenityOS/serenity/pull/9880
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue