#!/bin/bash
# Run this after authenticating gh for the repository owner account:
#   gh auth login
# Or manually set these in GitHub Settings > General

if [ -z "${WALLE_GITHUB_REPO:-}" ]; then
  echo "Set WALLE_GITHUB_REPO=owner/repo before running this script."
  exit 1
fi

REPO="$WALLE_GITHUB_REPO"

gh repo edit "$REPO" \
  --description "Wall-E — your personal digital twin. AI agent that learns from Slack, email & calendar. Includes CTM dashboard." \
  --homepage "https://walle.sh" \
  --add-topic "ai" \
  --add-topic "digital-twin" \
  --add-topic "claude" \
  --add-topic "personal-assistant" \
  --add-topic "slack" \
  --add-topic "sqlite" \
  --add-topic "nodejs"

echo "Done. Set social preview image manually at:"
echo "  https://github.com/${REPO}/settings"
