3 Commits

Author SHA1 Message Date
8820577d8d fix: correct Gitee API paths for issue ops, add --json to api command
Bug 1: Gitee create/update issue API uses /repos/{owner}/issues (no repo
in path, unlike GitHub). Fix issue create to POST to /repos/{owner}/issues
with repo as body param. Fix issue view and close to use same pattern.

Bug 2: gitee api command did not accept --json flag. Add --json option:
- without --json: pretty-printed JSON (default)
- with --json: compact JSON (pipe-friendly)

小橘 🍊(NEKO Team)
2026-04-01 23:33:07 +00:00
dd5963466e feat: add PR/Issue comment and code review commands
- issue comments <number>: list all comments on an issue
- pr comment <number> --body: add a comment to a PR
- pr comments <number>: list all PR comments
- pr files <number>: list changed files with type and +/- stats
- pr diff <number>: show colorized diff (+ green, - red)
- pr review <number> --action: submit review (approve/request_changes/comment)
- pr review-comments <number>: list PR inline review comments
- README updated with new commands
2026-04-01 14:33:38 +00:00
d44e6d049c feat: initial implementation of gitee-cli
- auth: login/logout/status with Personal Access Token
- repo: list/create/view/clone/delete
- issue: list/create/view/close/comment
- pr: list/create/view/merge/close
- release: list/create
- org: list
- api: raw API call with --field/--query/--paginate

Features:
- TypeScript + ESM
- commander.js CLI parsing
- Node built-in fetch (no axios)
- Auto-detect owner/repo from git remote (gitee.com)
- GITEE_TOKEN env var priority over config file
- --json flag for machine-readable output
- --page/--per-page pagination support
- Friendly error messages (401/403/404)
- Config stored at ~/.config/gitee-cli/config.json
2026-04-01 13:14:17 +00:00