Repository navigation
Conversation
…ecks, and projects
|
Closing: CadenEl already has 3 or more open PRs here, which is the limit for contributors who are not vouched. Once one of them is merged or closed, open this again. See the open PR limit. |
| const excludedAuthors = unionNames(menu.excludedAuthors, typed.excludedAuthors); | ||
| return { | ||
| ...menu, | ||
| ...typed, |
There was a problem hiding this comment.
🟡 Medium src/pullRequestQuery.ts:164
Combining the menu exclusion excludedReview: "approved" with typed -review:changes-requested returns only excludedReview: "changes-requested", so approved PRs reappear in server and local results. The ...typed spread overwrites the menu’s scalar exclusion; preserve both constraints or explicitly reject this combination instead of silently dropping one.
🤖 Copy this AI Prompt to have your agent fix this:
In file @packages/client-runtime/src/pullRequestQuery.ts around line 164:
Combining the menu exclusion `excludedReview: "approved"` with typed `-review:changes-requested` returns only `excludedReview: "changes-requested"`, so approved PRs reappear in server and local results. The `...typed` spread overwrites the menu’s scalar exclusion; preserve both constraints or explicitly reject this combination instead of silently dropping one.
| const first = projects.find( | ||
| (project) => pullRequestRepositoryKey(project) === excludedRepositories[0], | ||
| ); |
There was a problem hiding this comment.
🟡 Medium pull-requests/PullRequestListFilters.tsx:212
Turning the Project exclusion switch off with no excluded repository selects the first project whose repository key is undefined, unexpectedly scoping the list to that project. projects.find runs even when excludedRepositories is empty; only search for a project when an excluded repository exists.
| const first = projects.find( | |
| (project) => pullRequestRepositoryKey(project) === excludedRepositories[0], | |
| ); | |
| const first = | |
| excludedRepositories[0] === undefined | |
| ? undefined | |
| : projects.find( | |
| (project) => pullRequestRepositoryKey(project) === excludedRepositories[0], | |
| ); |
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/mobile/src/features/pull-requests/PullRequestListFilters.tsx around lines 212-214:
Turning the Project exclusion switch off with no excluded repository selects the first project whose repository key is `undefined`, unexpectedly scoping the list to that project. `projects.find` runs even when `excludedRepositories` is empty; only search for a project when an excluded repository exists.
There was a problem hiding this comment.
🟡 Medium
Excluding every repository makes targets empty, so the empty state incorrectly tells users to “Connect an environment” even when an environment is configured. Because targets contains only environments with non-null filtered inputs, use configured-environment availability—not targets.length—to choose the empty state.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/mobile/src/features/pull-requests/PullRequestsScreen.tsx around line 407:
Excluding every repository makes `targets` empty, so the empty state incorrectly tells users to “Connect an environment” even when an environment is configured. Because `targets` contains only environments with non-null filtered inputs, use configured-environment availability—not `targets.length`—to choose the empty state.
ApprovabilityVerdict: Would Approve Macroscope's review found this PR approvable — Adds optional exclusion filters to PR lists and searches on web and mobile, without changing product defaults or mutating repository data. The supplied Medium filtering and empty-state findings remain subject to the separate blocking gate. Needs human approval because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
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.projectIds, in batches of 100 on larger servers, and drops rows of excluded projects that arrive before their repository identity loads.-author:,-review:and-status:/-checks:parse to exclusions, and typed exclusions add to the menu's rather than replacing them.-review:none, and those searches skip the unfiltered rows the page otherwise mixes into text search.Scope and approval
Replaces #33522, which was closed for conflicting with
main. Proposed in Discussion #33520, which has no maintainer response yet.Verification
vp run check:changedpasses: format, lint, knip, typecheck (37 packages), and tests in 8 files.main. Each step stacks on the one before: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.