Add pr show, comment and review commands #4

Merged
kimi-bot-andresmgsl merged 5 commits from add-pr-review-commands into main 2026-07-22 22:24:27 +00:00

5 commits

Author SHA1 Message Date
kimi-reviewer-andresmgsl
d88cb484d3 Address PR #4 review feedback
- pr comment now rejects whitespace-only bodies and preserves raw body.
- pr review accepts request_changes alias in addition to request-changes.
- Add CLI-boundary regression test proving review body-file whitespace is
  preserved through the CLI and sent byte-for-byte to the API.
- Update README option help text for the new alias.
2026-07-22 21:57:30 +00:00
kimi-reviewer-andresmgsl
d56e509649 Preserve raw review body while validating emptiness
Validate non-APPROVED reviews using trim().length, but send the original
unmodified body to the API so Markdown whitespace is preserved.
2026-07-22 21:37:56 +00:00
kimi-reviewer-andresmgsl
6b0b3729f3 Fix review event mapping and body validation
- Map CLI 'approve' to Forgejo's expected 'APPROVED' event.
- Require a non-empty body for request-changes and comment events.
- Update API test expectation and add CLI tests for body validation.
2026-07-22 21:32:06 +00:00
kimi-reviewer-andresmgsl
fdb8dacebc Document pr show, comment and review commands in README 2026-07-22 21:21:21 +00:00
kimi-reviewer-andresmgsl
8e6907a11e Add pr show, comment and review commands
Adds CLI commands for inspecting a pull request, posting a comment, and
submitting an APPROVE/REQUEST_CHANGES/COMMENT review. Includes API client
methods, CLI wiring, and tests.
2026-07-22 21:20:46 +00:00