fj/internal/api
sid 43e43e7024 feat: v0.3.0a — add api command, pr diff/comment/review, structured errors
New commands:
- fgj api: raw REST API passthrough with field inference and path interpolation
- fgj pr diff: view PR diffs with color, --name-only, --stat
- fgj pr comment: add comments to pull requests
- fgj pr review: approve, request changes, or comment on PRs

Agentic enhancements:
- --json-errors flag for structured JSON error output on stderr
- APIError type wrapping HTTP status codes for machine consumption
- Error codes: auth_required, not_found, api_error, invalid_input, etc.

Docs updated for forgejo.zerova.net/sid/fgj-sid fork.
2026-03-21 21:50:24 -06:00
..
client.go feat: v0.3.0a — add api command, pr diff/comment/review, structured errors 2026-03-21 21:50:24 -06:00
client_test.go feat: v0.3.0a — add api command, pr diff/comment/review, structured errors 2026-03-21 21:50:24 -06:00
errors.go feat: add PR diff, PR review, and structured error handling commands 2026-03-21 21:50:24 -06:00