pr/issue: add comment command #23

Open
opened 2026-05-17 21:54:06 +02:00 by heiko · 1 comment
Owner

When reviewing or discussing PRs and issues from the CLI, there is no way to
post a comment without falling back to curl against the API directly.

Add a comment subcommand to both fj pr and fj issue:

fj pr comment <number> --body "..."
fj issue comment <number> --body "..."

When --body is omitted and stdin is a terminal, open the editor (same
pattern as issue create). When stdin is a pipe, read from it.

API endpoints:

  • POST /repos/{owner}/{repo}/issues/{index}/comments (works for both issues and PRs)
When reviewing or discussing PRs and issues from the CLI, there is no way to post a comment without falling back to `curl` against the API directly. Add a `comment` subcommand to both `fj pr` and `fj issue`: fj pr comment <number> --body "..." fj issue comment <number> --body "..." When `--body` is omitted and stdin is a terminal, open the editor (same pattern as `issue create`). When stdin is a pipe, read from it. API endpoints: - `POST /repos/{owner}/{repo}/issues/{index}/comments` (works for both issues and PRs)
Author
Owner

AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex

AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
heiko/fj#23
No description provided.