Repository navigation
Add author-wide repair PR intake - #314
Closed
Jhacarreiro wants to merge 1 commit into
Closed
Jhacarreiro wants to merge 1 commit into
Jhacarreiro wants to merge 1 commit into
Conversation
Jhacarreiro
force-pushed
the
feat/pr-intake-author-wide
branch
from
June 17, 2026 19:41
430e5bd to
b8c518a
Compare
Jhacarreiro
force-pushed
the
feat/pr-intake-author-wide
branch
from
June 17, 2026 20:10
b8c518a to
f317ed6
Compare
Contributor
|
Landed the reviewed rewrite in #335 via commit 59e2d44. The final version preserves author-wide intake while restricting discovery to configured public repositories, failing closed on unverifiable metadata, and avoiding persistence of excluded repository names. The original fork is not writable by the maintainer token, so I recreated the final tree as one maintainer commit with João's co-author credit. Thank you for the feature and live dry-run proof. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an author-wide mode to repair PR intake:
The existing repo-scoped mode remains unchanged:
Why
The current repair intake can only scan one repository at a time. That is the wrong primitive for a maintainer workflow where the useful question is:
This PR makes
authorusable as the discovery axis. It asks GitHub for open PRs by author, groups the result by repository, and then reuses the existing repo-scoped intake logic for each discovered repository.Behaviour
In
--all-openmode the command:gh search prs --author <login> --state open;repository.nameWithOwner;<out-dir>/<repo-slug>/inbox/;searched,repos_scanned,scanned,candidates,jobs, and per-repository summaries.It does not use
target_inventory, repository owners, repository dispatch, or GitHub Actions.Safety model
This mode only discovers and evaluates open PRs authored by the requested login. It does not broaden intake to issues, closed PRs, merged PRs, branches, or repository-owner sweeps.
The generated jobs keep the existing repair-intake guardrails: no merge, no close, human required for merge, and repair-only intent.
Validation
Real dry-run against the current token/user:
Observed summary: