Repository navigation
Conversation
…ecks, and projects Each of these filters can now narrow the list to its picks or drop them. An "Exclude matches" switch at the top of each submenu chooses the mode on web and mobile, and typed -author:, -review:, and -status: qualifiers work in search. The server applies the new exclusions to every provider's rows, and GitHub receives them as negated search qualifiers. Excluding a project hides every checkout of its repository by sending the remaining project ids, so the projectIds cap rises to 1000.
Typing -author: or -label: replaced the authors and labels excluded from the menu, so their rows came back while the menu still showed them as excluded. Both lists now apply together on web and mobile. Turning off the Project exclude switch now always clears the excluded repositories, even when none of them is in the current server's scope.
binjamshid
left a comment
There was a problem hiding this comment.
Adds exclude mode for author, labels, review, checks and project, on web and mobile, with matching -author:/-review:/-status: GitHub qualifiers and server-side matching. I checked the contract, the server matcher in PullRequestService, the GitHub qualifier builder, the parser and merge helpers, and the project-scope helpers. The include and exclude logic is consistent across server, GitHub and both clients, and the change to the cache-key slots is safe because that cache is in memory only. I found two small things.
-
Low: projects without a repository identity can't be excluded.
apps/web/src/components/pullRequest/PullRequestListFilters.tsx:670-673builds the exclude checklist only from projects that have arepositoryKey. The mobile list (PullRequestListFilters.tsx, therepositories.has(key)filter) does the same. A project with no resolved canonical key, such as a local-only repo, or one whose identity hasn't loaded yet, is missing from the menu in exclude mode but still listed in include mode. A user can include it but can't exclude it. Either fall back to excluding by project key when there's no repository key, or show those rows disabled with a hint. -
Low: the larger
projectIdscap makes an existing loop quadratic.packages/contracts/src/pullRequest.ts:39raises the cap from 100 to 1000. The server's project scoping (PullRequestService.ts,filter.projectIds.includes(project.id)inside the project loop) is O(projects × ids) per list and filter-options read. That was fine at 100 but costs more at 1000. ConvertingprojectIdsto aSetonce per call fixes it.
Process: this is still a draft waiting on approval in Discussion #33520, as the description notes. Mobile hasn't been checked on a device.
|
Note 🤖 Claude Opus 5.5 responding on behalf of Theo Closing. This PR conflicts with |
Problem
PR list filters can only narrow to a pick. There's no way to say "everything except", such as all PRs except one repo, or everything not approved. Draft is the only filter that already works both ways.
Change
excludedAuthors,excludedReviewandexcludedChecksnext to the existingexcludedLabels. The server applies them to every provider's rows, and they're part of the list cache key. GitHub also receives them as-author:,-review:and-status:search qualifiers.projectIdsand drops rows of excluded projects that arrive before their repository identity loads. TheprojectIdscap rises from 100 to 1000, so a large server can still list every other project.-author:,-review:and-status:/-checks:parse to exclusions, and typed exclusions add to the menu's rather than replacing them.Scope and approval
Proposed in Discussion #33520. No maintainer approval yet, so this is a draft for reference.
Verification
vp run check:changedpasses: format, lint, knip, typecheck (36 packages), and tests in 8 files.vouch:unvouched, removed all unvouched rows.vouch:unvouchedWritten by Claude Opus 5.5 through Claude Code on behalf of CadenEl, reviewed by GPT-6.1 Sol through Codex.