@staff0rd/assist 0.665.0 → 0.666.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -55,7 +55,7 @@ After installation, the `assist` command will be available globally. You can als
55
55
  - `/handover` - Write a session handover note for the next conversation
56
56
  - `/pr` - Raise a PR with a concise description, then watch CI in the background
57
57
  - `/prs-slack <number> [--no-confirm]` - Post a PR's title and URL to the Slack channel configured in `prs.slack`; `--no-confirm` skips the confirmation and posts straight away (used by chained announces)
58
- - `/prs-status <owner/repo>...` - Run `assist prs status <repos> --json` over the named repos and write a markdown overview of what is still pending merge, sorting each open PR into pending review, changes requested, failing checks, ready to merge or drafts, re-listing anything untouched for 7+ days as stale, and naming any repo that could not be read. Writes to chat only — it creates no files and posts nowhere
58
+ - `/prs-status <owner/repo>...` - Run `assist prs status <repos> --json` over the named repos and write a markdown overview of what is still pending merge, sorting each open PR into pending review, changes requested, failing checks or ready to merge, excluding drafts (counted, not listed), re-listing anything untouched for 7+ days as stale, and naming any repo that could not be read. Writes to chat only — it creates no files and posts nowhere
59
59
  - `/refactor` - Run refactoring checks for code quality
60
60
  - `/prompts` - Analyze denied tool calls and suggest settings changes to auto-allow recurring prompts
61
61
  - `/recall` - Recall the most recent handover note for this repo
@@ -23,15 +23,15 @@ Use only what the payload says. `unresolvedThreads: null` means that PR's thread
23
23
 
24
24
  ## Step 3: Sort each PR into one bucket
25
25
 
26
- Every non-draft PR belongs in exactly one section, taking the first that matches:
26
+ Discard every PR with `isDraft: true` — a draft is not pending merge. Keep a count of the discarded drafts for the summary line.
27
+
28
+ Each remaining PR belongs in exactly one section, taking the first that matches:
27
29
 
28
30
  1. **Pending review** — no failing checks, `mergeable` is not `CONFLICTING`, no unresolved threads, and `reviewDecision` is `REVIEW_REQUIRED` or absent with no approval in `reviews`.
29
31
  2. **Changes requested** — `reviewDecision` is `CHANGES_REQUESTED`, or `unresolvedThreads` is above zero.
30
32
  3. **Failing checks** — `checks.failing` is non-empty or `mergeable` is `CONFLICTING`.
31
33
  4. **Ready to merge** — `reviewDecision` is `APPROVED` with clean checks and no unresolved threads.
32
34
 
33
- Drafts go in their own section regardless of the above.
34
-
35
35
  ## Step 4: Write the overview
36
36
 
37
37
  Write the overview to chat as markdown. Do not create files, and do not post anywhere.
@@ -39,7 +39,7 @@ Write the overview to chat as markdown. Do not create files, and do not post any
39
39
  ```markdown
40
40
  # Open PRs — <repo>, <repo>
41
41
 
42
- <n> open across <n> repos: <n> pending review, <n> changes requested, <n> failing checks, <n> ready to merge, <n> drafts.
42
+ <n> open across <n> repos (<n> drafts excluded): <n> pending review, <n> changes requested, <n> failing checks, <n> ready to merge.
43
43
 
44
44
  ## Pending review
45
45
 
@@ -61,10 +61,6 @@ Write the overview to chat as markdown. Do not create files, and do not post any
61
61
 
62
62
  - [owner/repo#126](url) — Title (author, updated 1d ago)
63
63
 
64
- ## Drafts
65
-
66
- - [owner/repo#127](url) — Title (author, updated 9d ago)
67
-
68
64
  ## Stale — no activity in 7+ days
69
65
 
70
66
  - [owner/repo#127](url) — 9d
@@ -74,4 +70,4 @@ Write the overview to chat as markdown. Do not create files, and do not post any
74
70
  - owner/repo — <error>
75
71
  ```
76
72
 
77
- Omit any section with nothing in it. The stale section re-lists any PR whose `ageHours` is 168 or more, whichever bucket it sits in; mark bot-authored PRs with `[bot]` after the title. Include the "Could not be read" section whenever `errors` is non-empty, even if every other repo succeeded. When there are no open PRs at all, say so in one line instead of emitting empty sections.
73
+ Omit any section with nothing in it. The stale section re-lists any PR whose `ageHours` is 168 or more, whichever bucket it sits in; mark bot-authored PRs with `[bot]` after the title. Include the "Could not be read" section whenever `errors` is non-empty, even if every other repo succeeded. When every open PR is a draft, or there are no open PRs at all, say so in one line instead of emitting empty sections.