GeezerVison is showing github.com — fix(github): teams with access show in the reviewer picker by ipanasenko · Pull Request #35126 · pingdotgg/t3code
Conversation
Note 🤖 Written by Claude Opus 5.5 on behalf of Illia
Fresh from current main, replacing #31150, which was closed for conflicts.
Problem
On GitHub, the pull request reviewer picker can't find a team. Typing a team name such as frontend shows "Nobody with access matches that.", so a team can only be asked for a review on GitHub itself. The picker lists assignableUsers (people only), plus teams already requested on the pull request, so those requests can be taken back.
Change
listReviewerCandidates (GitHub)
ReviewerCandidates # people + already requested reviewers
+ ReviewerTeams # organization teams, in parallel, same `query`
+ keep teams whose repositories include owner/name
+ on any failure: no teams, people still listed
merge: requested → teams → people
ReviewerTeams reads organization(login: owner).teams. It needs read:org, and a GraphQL query GitHub refuses fails whole. That's why teams were left out of ReviewerCandidates. They stay in their own query and are dropped on failure (a token without read:org, or a repository owned by a user).
- GitHub refuses a review request to a team without access to the repository, so each team's
repositories(query: name) is checked for the exact owner/name. The REST list of a repository's teams needs admin (it returns 404 with repo + read:org as a non-admin), so it can't be used here.
- The host search from fix(prs): reviewer menu searches past the first page and keeps GitLab's requested reviewers #22489 now covers teams too: the typed text also goes to
teams(query:), which GitHub matches on team name and slug, and host-matched teams are kept alongside host-matched people.
- An already requested team is listed once. More than 100 teams sets the existing
truncated flag, which turns the host search on.
- No client or contract change: web and mobile already render
kind: "team" candidates, and requests already send team_reviewers.
Scope and approval
A small, focused fix for an obvious bug, with no prior issue. The capability is half there already: the candidate contract has kind: "team", both pickers render team rows, the request payload sends team_reviewers, and the mobile picker says "Search people and teams with access to this repository." But the GitHub adapter never returns a team that hasn't been requested yet, so none of this can be reached. This PR changes only the GitHub reviewer candidate read. Other hosts are unchanged. #19375 made teams that were already requested show up.
Verification
| Before |
After |
 |
 |
- Manual check: local dev server on this branch against a real organization pull request. The picker lists the 9 teams with access to the repository before the people (the organization has 11; the 2 without access aren't offered). Typing
frontend lists the frontend team, tagged "team". The before capture is from fix(github): teams with access show in the reviewer picker #31150's base, where the picker behaved the same for this case.
- Live
teams(first: 100, query: "front") on that organization returns the frontend team with the repository in its access list.
GitHubPullRequestApi.test.ts: teams with access appear between the requested reviewers and the people; an INSUFFICIENT_SCOPES refusal of the teams query still returns the people; a typed query is sent to both reads and keeps host-matched teams. All three fail on main.
gitHubPullRequestJson.test.ts: the access filter is case-insensitive and drops a loose query match (acme/web-legacy), a requested team appears once, and a teams next page sets truncated.
vp run check:changed: format, lint, knip, GraphQL codegen check, typecheck and tests pass.
- Not checked: sending a team review request from the picker. It uses the existing
team_reviewers path, and I didn't want to ping a real team.
Done with Claude Opus 5.5 in Claude Code, run through T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at 53e7afc
Macroscope's review found this PR approvable — The reviewer picker now includes visible organization teams with access to the repository, while preserving people results if team lookup fails. This adds selectable reviewers without granting access or automatically sending review requests.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
No code changes detected at a586351. Prior analysis still applies.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
GitHub reviewer candidate lookup now includes eligible organization teams alongside assignable people. Team results are filtered by repository access, can match the search query, and contribute to pagination status. Team-query errors do not prevent people candidates from being returned.
Changes: GitHub reviewer team candidates
| Layer / File(s) |
Summary |
Team query and result contract packages/source-control-github/src/server/pullRequestReads.graphql, packages/source-control-github/src/server/pullRequestReads.graphql.ts |
Adds the ReviewerTeams query and its result schemas. Renames the schema for teams already requested as reviewers. |
Team filtering and candidate merging packages/source-control-github/src/server/gitHubPullRequestJson.ts, packages/source-control-github/src/server/gitHubPullRequestJson.test.ts |
Filters teams by repository access and merges eligible teams with people candidates. Search matching and truncation account for both candidate types. |
Reviewer candidate query integration packages/source-control-github/src/server/GitHubPullRequestApi.ts, packages/source-control-github/src/server/GitHubPullRequestApi.test.ts |
Runs people and team queries concurrently. Team-query errors produce no team results, while people candidates remain available. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant GitHubPullRequestApi
participant GitHubGraphQL
participant toReviewerTeams
participant toReviewerCandidates
GitHubPullRequestApi->>GitHubGraphQL: Run people and team queries
GitHubGraphQL-->>GitHubPullRequestApi: Return query results
GitHubPullRequestApi->>toReviewerTeams: Convert team results
toReviewerTeams-->>GitHubPullRequestApi: Return eligible teams
GitHubPullRequestApi->>toReviewerCandidates: Combine people and team candidates
Loading
Possibly related PRs
Suggested reviewers: juliusmarminge, t3dotgg
Merge Risk: Minimal · previous review 00d96
-
The reviewer picker now shows organization teams that have repository access, and a failed team lookup falls back to listing people. No concrete merge-blocking risk was identified. Sending a team review request and tokens without read:org were not exercised.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(github): teams with access show in the reviewer picker" matches the main change. The changeset makes organization teams with repository access appear as reviewer candidates in the GitHu… |
| Description check |
 |
The description follows the template sections: Problem, Change, Scope, and Verification. It states the bug and its cause, explains the GitHub-only change and why teams are queried separately, gives th… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(github): teams with access show in the reviewer picker" matches the main change. The changeset makes organization teams with repository access appear as reviewer candidates in the GitHub adapter, and the title names that change. It is a conventional commit with a plain-language summary.
Full details: Description check
-
Explanation
The description follows the template sections: Problem, Change, Scope, and Verification. It states the bug and its cause, explains the GitHub-only change and why teams are queried separately, gives the scope and approval rationale, and reports concrete verification with before/after images, manual checks, focused tests, and an untested item. The agent attribution line is present. The description is complete and specific.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 62727f9 and 00d9631.
Files selected for processing: 2
-
packages/source-control-github/src/server/GitHubPullRequestApi.test.ts
packages/source-control-github/src/server/GitHubPullRequestApi.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional comments: 1
-
packages/source-control-github/src/server/GitHubPullRequestApi.test.ts-4215-4215: 1
-
4215-4215: Minor · Functional Correctness · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Make the typed-search fixture match the query.
The mock returns team web for ReviewerTeams(query: "octo"), and this assertion expects acme/web. GitHub filters that query by team name and slug, so the real response would omit web. Use a team whose name or slug matches octo, or expect no team in this case. (docs.github.com)
As per coding guidelines, “Test behavior that can break.” As per path instructions, “Hold changed tests to the rules in docs/internals/testing.md.”
Sources: Coding guidelines, Path instructions
Review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between ee90bdc and 38d9bd5.
Files selected for processing: 6
-
packages/source-control-github/src/server/GitHubPullRequestApi.test.ts
packages/source-control-github/src/server/GitHubPullRequestApi.ts
packages/source-control-github/src/server/gitHubPullRequestJson.test.ts
packages/source-control-github/src/server/gitHubPullRequestJson.ts
packages/source-control-github/src/server/pullRequestReads.graphql
packages/source-control-github/src/server/pullRequestReads.graphql.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified unchanged head 53e7afcf7dbecf5fa6893f5c584014dfdb3fb19a on a linux boat vm with real github credentials, playwright and /usr/bin/google-chrome.
- reproduced on
github/main at d6c1d17793: this pr's github reviewer picker returns "Nobody with access matches that." for ping-devs, although the live github team query confirms repository access.
- stopped main's server before starting the exact pr head. added a real github-backed project through the app and completed a real codex
gpt-6.1-sol turn on each version. no mocks, fixtures or demo data.
- on the pr head, the same picker search returns
pingdotgg/ping-devs, tagged "team". people search still returns maria-rcks; an unmatched search shows the empty state; closing and reopening the picker returns one team row.
- checked the actual web-client websocket response and a typed search through the running server's github adapter:
pullRequests.reviewerCandidates
host=github.com repository=pingdotgg/t3code number=35126
Success: pingdotgg/ping-devs (team, isRequested=false), 8 people, truncated=false
same live RPC with query="ping"
Success: pingdotgg/ping-devs (team)
blacksmith checks passed: the two focused suites (186 tests), then vp run check:changed ee90bdc9405d8d4b8ff78ce2133ccb04844298ab against the pr merge base. the latter passed format, lint, knip, graphql generation, typechecks for 11 packages and 188 tests. github ci is also green. no code changes or pushes were needed.
before, on main:

after, on the exact pr head:

team, people, unmatched search, then team again; playback and seeking checked after upload:

Not verified
sending or removing a review request was not exercised because it would notify real reviewers and mutate the pr. native ios/android, electron, remote/relay/tunnel connections, tokens without read:org, user-owned repositories, already-requested-team deduplication and more-than-100-result pagination were not exercised in the running app. the existing focused tests cover the scope-error fallback and requested-team deduplication.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…wers
# Conflicts:
# packages/source-control-github/src/server/pullRequestReads.graphql.ts
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|