From 7e997c824390463c94aff8f2cd94097dbe772d6f Mon Sep 17 00:00:00 2001 From: Abhiyan Dhakal Date: Sun, 27 Sep 2026 21:44:26 +0545 Subject: [PATCH] chore(repo): require signed-off commits Signed-off-by: Abhiyan Dhakal --- .husky/commit-msg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.husky/commit-msg b/.husky/commit-msg index c08309a..bb8852e 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1,6 @@ +if ! git interpret-trailers --parse "$1" | grep -Eq '^Signed-off-by: .+ <[^<>[:space:]]+>$'; then + echo "Commit rejected: add a Signed-off-by trailer with 'git commit -s'." >&2 + exit 1 +fi + bunx --no -- commitlint --edit "$1"