threefold / scripts /push_to_github.sh
LAWLESS1987
Initial public threefold: tombstone + covenant + JLens (sample only)
dc64fba
Raw History Blame Contribute Delete
579 Bytes
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$REPO_ROOT"
OWNER=LAWLESS1987
NAME=triad
# Create if missing
if ! gh repo view "$OWNER/$NAME" >/dev/null 2>&1; then
gh repo create "$OWNER/$NAME" --public --description "Mandatory three-leg agent memory: tombstone || covenant || JLens (shared task_id, no degrade)" --source . --remote origin --push
else
git remote remove origin 2>/dev/null || true
git remote add origin "https://github.com/$OWNER/$NAME.git"
git push -u origin main
fi
echo "PUSH_OK https://github.com/$OWNER/$NAME"