Add a raw API passthrough (gitea-axi api) as an escape hatch #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I ran into
Twice in one review task I hit something gitea-axi doesn't expose (inline-comment line anchors when reading; inline comments when writing).
Each time, the fallback wasn't "drop to a supported raw call" — it was hand-rolling
curlagainst the Gitea REST API and scraping the token out of~/.config/tea/config.ymlto authenticate.That improvised auth + URL building is exactly the fragile, error-prone path the skill exists to prevent.
Real gap
Real gap: there is no
apiverb in the top-level dispatch or underpr(src/commands/pr.tsprCommandhandles list/view/diff/checkout/checks/create/edit/merge/update-branch/close/reopen/review/comment — nothing generic).So when a capability is missing, there is no sanctioned escape hatch, and the user notices agents reaching for
curl+ config-file parsing.Recommendation
Add a thin raw passthrough, in the spirit of
gh api:It should reuse the existing repo/login resolution and the
tealogin credentials (src/tea.ts/src/client.ts) so no token handling is improvised, resolve{owner}/{repo}placeholders in the path from context, and print the raw JSON response.Value beyond convenience:
curl+config.ymlparsing.This is the highest-leverage of the review-workflow gaps I hit, because it backstops all the others.