Skip to content

feat(repair): add safe author-wide PR intake - #335

Merged
steipete merged 1 commit into
mainfrom
feat/pr-intake-author-wide-maintainer
Jun 19, 2026
Merged

steipete merged 1 commit into
mainfrom
feat/pr-intake-author-wide-maintainer

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • discover an author's open pull requests across GitHub
  • scan only configured or supported public repositories
  • fail closed for private, unsupported, or unverifiable repositories
  • report aggregate skip counts without persisting excluded repository names
  • thread repository context explicitly through review-thread lookup and job rendering
  • preserve the existing repo-scoped command

Replaces #314 because the contributor fork is not writable by the maintainer token. Preserves contributor credit.

Verification

  • pnpm run check
  • 526 unit tests passed
  • 561 repair tests passed
  • 1,087 full coverage tests passed
  • Codex autoreview clean

@clawsweeper

clawsweeper Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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.

@steipete
steipete merged commit 59e2d44 into main Jun 19, 2026
8 checks passed
@steipete
steipete deleted the feat/pr-intake-author-wide-maintainer branch June 19, 2026 07:51

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +173 to +176
const root = outDirArg
? path.resolve(repoRoot(), outDirArg)
: path.resolve(repoRoot(), "jobs", "author", slug(author));
return path.join(root, slug(targetRepo), "inbox");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +186 to +187
return ghJson<AuthorSearchPullRequest[]>([
"search",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant