@fullstackhouse/cerber 0.9.0 → 0.9.1

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
@@ -38,7 +38,8 @@ Sending stays a human click. Tame it with `--no-auto-review` (list awaiting
38
38
  PRs, review on click) or `--no-poll` (no GitHub polling at all) — or flip the
39
39
  same two switches in the cockpit's Settings, which persist in
40
40
  `~/.cerber/config.json` and apply on the next poll. Merged and closed PRs are
41
- archived out of the queue automatically.
41
+ archived out of the queue automatically, and PRs in archived repos are never
42
+ picked up at all — the repo is read-only, so a review could never be sent.
42
43
 
43
44
  ## What a review looks like
44
45
 
package/dist/core/gh.js CHANGED
@@ -114,11 +114,13 @@ export function mapSearchResults(raw) {
114
114
  ];
115
115
  });
116
116
  }
117
- /** Open, non-draft PRs where the current gh user's review is requested. */
118
- export async function searchAwaitingMe(repoFilter, limit = 50) {
117
+ export function searchAwaitingArgs(repoFilter, limit = 50) {
119
118
  const args = [
120
119
  "search",
121
120
  "prs",
121
+ // An archived repo is read-only: its PRs can never merge, close, or take a
122
+ // review. Without this they'd sit in the inbox forever — nothing retires them.
123
+ "archived:false",
122
124
  "--review-requested=@me",
123
125
  "--state=open",
124
126
  "--limit",
@@ -128,7 +130,11 @@ export async function searchAwaitingMe(repoFilter, limit = 50) {
128
130
  ];
129
131
  if (repoFilter)
130
132
  args.push("--repo", repoFilter);
131
- const out = await gh(args);
133
+ return args;
134
+ }
135
+ /** Open, non-draft PRs where the current gh user's review is requested. */
136
+ export async function searchAwaitingMe(repoFilter, limit = 50) {
137
+ const out = await gh(searchAwaitingArgs(repoFilter, limit));
132
138
  return mapSearchResults(JSON.parse(out));
133
139
  }
134
140
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstackhouse/cerber",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "AI code-review cockpit: Claude reviews your PRs into local artifacts; nothing reaches GitHub until you say so.",
5
5
  "license": "MIT",
6
6
  "repository": "github:fullstackhouse/cerber",