Repository navigation
feat(repair): add safe author-wide PR intake - #335
Conversation
Co-authored-by: Joao Carreiro <[email protected]>
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(repair): add safe author-wide PR intake This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 426b0351b9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const root = outDirArg | ||
| ? path.resolve(repoRoot(), outDirArg) | ||
| : path.resolve(repoRoot(), "jobs", "author", slug(author)); | ||
| return path.join(root, slug(targetRepo), "inbox"); |
There was a problem hiding this comment.
Keep author-wide jobs under the target owner
With the documented --all-open command and no --out-dir, this writes jobs under jobs/author/<login>/<repo>/inbox/.... The repair worker workflow derives the GitHub App installation owner from the first path component after jobs/ (owner="${JOB_PATH#jobs/}"; owner="${owner%%/*}" in .github/workflows/repair-cluster-worker.yml), so dispatching these jobs requests an installation for owner author instead of openclaw/steipete and fails before repair starts. Existing job producers use jobs/<owner>/inbox; keep author-wide jobs under the target owner or update the workflow/publisher path contract.
Useful? React with 👍 / 👎.
| return ghJson<AuthorSearchPullRequest[]>([ | ||
| "search", |
There was a problem hiding this comment.
Filter author-wide discovery before applying the limit
This initial gh search prs runs globally and only later filters repositories, while the GitHub CLI manual for gh search prs defines --limit as the maximum number of results fetched and also exposes --owner for narrowing the search. For authors with more than --limit open PRs in external or unsupported repos, eligible OpenClaw/Steipete PRs outside that first search page are never discovered, so --all-open can silently generate no repair job for a configured public repo. Constrain or page discovery per configured owner/repo before applying the cap.
Useful? React with 👍 / 👎.
Co-authored-by: Joao Carreiro <[email protected]>
Summary
Replaces #314 because the contributor fork is not writable by the maintainer token. Preserves contributor credit.
Verification
pnpm run check