Skip to content
Shell
712 B
Raw Blame
#!/bin/bash
# Progress Report: Creates human-readable summaries of work done

FILE_PATH="$1"

# Skip non-code files
FILE_EXT="${FILE_PATH##*.}"
case "$FILE_EXT" in
  md|txt|json|yaml|yml|env|gitignore)
    exit 0
    ;;
esac

# Count total files changed in current session
CHANGED_FILES=$(git status --porcelain | wc -l | tr -d ' ')

if [ "$CHANGED_FILES" -ge 3 ]; then
  echo "πŸ“Š Progress Update:"
  echo "   - Files modified: $CHANGED_FILES"
  echo "   - Latest: $FILE_PATH"

  # Check if tests exist and are passing
  if [ -d "tests" ] || [ -d "test" ] || [ -d "__tests__" ]; then
    echo "   - Tests: Running..."
  fi

  echo "πŸ’‘ Claude is tracking progress and will summarize when complete"
fi

exit 0