fix(commit-policy): 자동 co-author footer 변형을 차단한다

This commit is contained in:
2026-04-07 16:16:18 +09:00
parent e8637b424d
commit bebdf6a379

View File

@@ -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:]]*<clio-agent@sisyphuslabs\.ai>$' >/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