claude fixups
This commit is contained in:
parent
44641ca4ae
commit
e4396f748d
2 changed files with 6 additions and 1 deletions
|
|
@ -4,6 +4,11 @@ set -euo pipefail
|
|||
INPUT=$(cat)
|
||||
CMD=$(printf '%s' "$INPUT" | jq -r '.tool_input.command // empty')
|
||||
|
||||
if printf '%s' "$CMD" | grep -qiE 'co-authored-by|signed-off-by'; then
|
||||
echo "Blocked: never add Co-Authored-By or Signed-off-by trailers. See CLAUDE.md line 11." >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if printf '%s' "$CMD" | grep -qE '\bgit\s+push\b'; then
|
||||
BRANCH=$(git branch --show-current 2>/dev/null || true)
|
||||
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue