ghissue

command
v0.123.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
                                                 PATCH also takes "title" and "body" (read 2026-11-08), which --edit uses
https://docs.github.com/en/rest/issues/labels    POST /repos/{owner}/{repo}/issues/{n}/labels adds (200, returns the labels); DELETE .../labels/{name} removes one (200, 404 if absent, returns the remaining labels) (read 2026-11-08)
https://docs.github.com/en/rest/repos/repos     GET /repos/{owner}/{repo}, "full_name", "html_url", "has_issues"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL