From bebdf6a379d88dfb48f17e3f3c825f85a2908bd5 Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 7 Apr 2026 16:16:18 +0900 Subject: [PATCH] =?UTF-8?q?fix(commit-policy):=20=EC=9E=90=EB=8F=99=20co-a?= =?UTF-8?q?uthor=20footer=20=EB=B3=80=ED=98=95=EC=9D=84=20=EC=B0=A8?= =?UTF-8?q?=EB=8B=A8=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- work/scripts/check-commit-message-rules.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/work/scripts/check-commit-message-rules.sh b/work/scripts/check-commit-message-rules.sh index f95abbe3..7be904db 100755 --- a/work/scripts/check-commit-message-rules.sh +++ b/work/scripts/check-commit-message-rules.sh @@ -112,6 +112,18 @@ if [ -n "$body" ] && printf '%s\n' "$body" | grep -Eq '^Refs:'; then fi fi +if [ -n "$body" ]; then + if printf '%s\n' "$body" | grep -Fq 'Ultraworked with [Sisyphus]'; then + echo "[FAIL] Sisyphus attribution footer must not be included" + exit_code=1 + fi + + if printf '%s\n' "$body" | grep -Ei '^Co-authored-by:[[:space:]]*Sisyphus[[:space:]]*$' >/dev/null; then + echo "[FAIL] Automatic Sisyphus co-author footer must not be included" + exit_code=1 + fi +fi + if [ $exit_code -eq 0 ]; then echo "[PASS] Commit message follows AGENTS.md rules" else