spp note
spp note keeps a local log of one-line notes, keyed by repo and Sub-issue, in spp's own state directory outside
every repository: it appends a note, lists the latest notes of an Epic, or notes a hook event.
Its three forms:
spp note <issue> <text> [--milestone]appends a note with no GitHub call;--milestonealso writes the text into the progress comment's notes.spp note --list <epic> [--json]prints the latest note of each Sub-issue of the Epic; with--json, a LatestNote list.spp note --autois for thePostToolUseandStophooks: it reads the hook payload on stdin and notes a pull request opened, aspp verifyrun or a stop for the ticket of the session'ssdd/<N>-*branch, so the worker never has to. A stop thatspp verify --checkrefuses is not noted, since the worker keeps going.
Functions¶
run()¶
Appends a note, lists the latest notes of an Epic, or notes a hook event.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
args |
string[] |
<issue> <text> with --milestone to mirror it into the progress comment; or --list <epic> with --json for a LatestNote list; or --auto alone. |
Returns¶
Promise\<number>
0 when the note is written or the list printed (--auto exits 0 when there is nothing to note); 2 on a
usage error, with the usage on stderr; 1 when gh fails, with the reason on stderr.
Example¶
Variables¶
USAGE¶
The usage text spp note --help prints.
usage: spp note <issue> <text> [--milestone]
spp note --list <epic number | issue URL> [--json]
spp note --auto
<issue> is an issue number in the current repo or a GitHub issue URL. --milestone also writes the text into the
ticket's progress comment as its notes. --list prints the latest note of each ticket of the Epic: the ticket's
issue URL, the text and the time. --auto reads a hook payload on stdin and notes a gh pr create that printed a
pull request URL, a spp verify run, or a stop that spp verify --check lets through.
Type Aliases¶
LatestNote¶
The latest note of one Sub-issue: an entry of the spp note --list --json list.
Properties¶
| Property | Type | Description |
|---|---|---|
ticket |
string |
The Sub-issue's URL. |
text |
string |
The note. |
at |
string |
When it was written, as an ISO time. |