From 73a43fa0fc45d665f1d325dfb23179a943b7119f Mon Sep 17 00:00:00 2001 From: Sulthan Zaki Date: Mon, 27 Jul 2026 00:40:57 +0700 Subject: [PATCH] docs: note this repo uses tea, not gh origin is a self-hosted Gitea instance, so the gh CLI cannot see it. The default assumption is GitHub, and it costs a failed command every time. Co-Authored-By: Claude Opus 5 --- CLAUDE.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index ab83a1a..ee7b87c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -87,6 +87,17 @@ Local stack: `docker compose up` (named volume mounted at `/data`, `restart: unl Smoke test: `curl` the endpoints with `Authorization: Bearer `; confirm `OPTIONS` preflight returns CORS headers and `/healthz` returns 200. +## Forge: Gitea, not GitHub + +`origin` is a self-hosted Gitea instance (`gitea.violetcrown.my.id`), so **`gh` does not work here — use `tea` (Gitea CLI) for anything past plain git.** Common ones: + +- Open a PR: `tea pr create --head --base main --title "..." --description "..."` +- List / view / check out: `tea pr list`, `tea pr `, `tea pr checkout ` +- Issues: `tea issue create`, `tea issue list` +- Auth lives in `tea login`, not a `GH_TOKEN` env var. + +`tea` prints its output as rendered boxes rather than plain text; the PR URL lands on the last line. + ## Security invariants - Auth on `/bookmarks*`: require `Authorization: Bearer `, **constant-time compare**, 401 otherwise.