Documentation
¶
Overview ¶
Command ghissue posts one comment to a GitHub issue or pull request, and can close or reopen it in the same pass, after showing which issue and which account it is about to speak for. With --new it opens an issue instead.
--new exists because `gh issue create` was the one tracker write the fleet had no program for, so on 2026-11-08 three issues were opened by hand while the standing rule said every GitHub write goes through a fleet program. A rule with a hole in its toolbox is followed until the hole is reached.
It exists for the same reason bzcomment does, one host over: so a session can write to a tracker without the token ever passing through a URL, an argument vector, the environment or a log. The token is read from a 0600 file and sent only in the Authorization header.
It also exists because the body of a report is PROSE, and prose does not belong on a command line. A shell that builds `--body "$(cat file)"` hands the whole text to the argument vector, where every quote, backtick and dollar in it is the shell's business before it is GitHub's; `--body-file` reads the bytes and sends them.
References (read 2026-11-07):
https://docs.github.com/en/rest/issues/comments POST /repos/{owner}/{repo}/issues/{issue_number}/comments, body field "body"
https://docs.github.com/en/rest/issues/issues PATCH /repos/{owner}/{repo}/issues/{issue_number}, "state" (open|closed) and "state_reason" (completed|not_planned|duplicate|reopened|null, ignored unless state changes)
POST /repos/{owner}/{repo}/issues, "title" (required) and "body"; 201 with "number" and "html_url"
https://docs.github.com/en/rest/repos/repos GET /repos/{owner}/{repo}, "full_name", "html_url", "has_issues"