Stack Status
@mgreten/stack-statusv2026.07.24.3
01README
Fetches PR-stack review and CI status from GitHub via gh and renders it as a self-contained, theme-aware HTML flowchart — for anyone using Graphite-style stacked pull requests who wants a single visual snapshot of a stack's health.
02Release Notes
Add optional outFile to renderHtml to write the HTML straight to disk (openable), plus README fixes.
03Models
@mgreten/stack-statusv2026.07.24.3stack_status.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| repo | string |
fn fetch(stack: string, repo?: string, nowIso?: string)
Resolve PR numbers from a pasted gt stack block, a Graphite/GitHub PR
| Argument | Type | Description |
|---|---|---|
| stack | string | gt-pasteable stack markdown block, a Graphite/GitHub PR URL, or |
| repo? | string | GitHub owner/repo override (defaults to the model's configured repo) |
| nowIso? | string | ISO timestamp to stamp the bundle with (for deterministic tests) |
fn renderHtml(stack?: string, outFile?: string)
Render a stackStatus bundle as a self-contained HTML flowchart (inline
| Argument | Type | Description |
|---|---|---|
| stack? | string | Same stack input as `fetch` — used to look up the matching stackStatus |
| outFile? | string | Optional filesystem path to also write the raw HTML document to, ready |
Resources
prStatus(7d)— Single-PR status snapshot: identity, approval status (reviewDecision +
stackStatus(7d)— Ordered bundle of prStatus for a whole stack, base (bottom) to tip (top).
stackHtml(7d)— Self-contained HTML flowchart rendering of a stackStatus bundle — inline
04Previous Versions
2026.07.24.2
Fix: canonicalize stack lookup key by numeric sort so renderHtml reliably finds a prior fetch regardless of PR input order.
2026.07.24.1
Initial release: fetch PR-stack review/CI status via gh and render a self-contained HTML flowchart.
05Stats
A
100 / 100
Downloads
0
Archive size
21.5 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms