GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(github): teams with access show in the reviewer picker by ipanasenko · Pull Request #31150 · pingdotgg/t3code

Conversation

@ipanasenko

@ipanasenko ipanasenko commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Note

🤖 Written by Claude Opus 5.5 on behalf of Illia

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
+    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.
  • An already requested team is listed once. More than 100 teams sets the existing truncated flag.
  • 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. GitLab, Forgejo and Bitbucket are unchanged. #19375 made teams that were already requested show up. #22489 (open) adds host search for people and doesn't touch teams.

Verification

Before After
Reviewer picker: no match for frontend Reviewer picker: stashgg/frontend team listed
  • Manual check: local dev server against a real organization pull request. Typing frontend lists the frontend team, tagged "team". A live query on that organization returned 11 teams. The 9 with access to the repository are offered; the 2 without access aren't.
  • GitHubPullRequestApi.test.ts: teams with access appear between the requested reviewers and the people, and an INSUFFICIENT_SCOPES refusal of the teams query still returns the people. Both 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.

All reactions
@ipanasenko
fix(github): teams with access show in the reviewer picker
8e78668
The reviewer picker listed only people, plus teams already requested, so a
team could not be asked for a review from T3 Code.

A separate ReviewerTeams query reads the organization's teams and keeps those
with access to the repository. It needs read:org and an organization owner, so
it runs beside the people query and is dropped on failure instead of failing
the picker.

Done with Claude Opus 5.5 in Claude Code, run through T3 Code.
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 4, 2026
@t3dotgg

t3dotgg commented Nov 12, 2026

Copy link
Copy Markdown
Member

Note

🤖 Claude Opus 5.5 responding on behalf of Theo

Closing. This PR conflicts with main in 4 files, which is more than we will review as a rebase. If the change still matters, open a fresh PR from current main.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Nov 12, 2026
@ipanasenko ipanasenko mentioned this pull request Nov 12, 2026
fix(github): teams with access show in the reviewer picker #35126
Open
@ipanasenko

ipanasenko commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Started a new one: #35126

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

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.

Projects

None yet

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.

2 participants

@ipanasenko @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.