Skip to content

upload: Support Github teams as reviewers - #240

Merged
jerry-skydio merged 1 commit into
mainfrom
aaron/revup/main/teams
May 19, 2026
Merged

jerry-skydio merged 1 commit into
mainfrom
aaron/revup/main/teams

Conversation

@aaron-skydio

Copy link
Copy Markdown
Contributor

Reviewers tagged as org/team-slug are resolved via the Github teams API
and passed as teamIds to requestReviews. Github does not support teams
as assignees; since Github usernames cannot contain "/", any org/slug
entry in Assignees is unambiguously invalid and raises a usage error.
auto_add_users=r2a/both likewise does not copy teams from Reviewers
into Assignees.

To avoid repeatedly triggering Github's code review auto-assignment,
team membership is fetched alongside the team id and the team is not
re-requested when one of its members is already a reviewer on the PR.
Teams with more than 100 members fall back to always re-requesting. We
emit a warning when either of these happens.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com
Topic: teams
Reviewers: jerry,brian-k

@aaron-skydio

Copy link
Copy Markdown
Contributor Author

Reviews in this chain:
└#240 upload: Support Github teams as reviewers

@aaron-skydio

aaron-skydio commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor Author
# head base diff date summary
0 031f8699 0ef7ecb0 diff Apr 28 16:01 PM 5 files changed, 203 insertions(+), 17 deletions(-)
1 b5279c69 0ef7ecb0 diff Apr 28 16:06 PM 3 files changed, 4 insertions(+), 9 deletions(-)
2 f3ae84f0 0ef7ecb0 diff Apr 28 16:10 PM 1 file changed, 4 insertions(+), 3 deletions(-)

@jerry-skydio

Copy link
Copy Markdown
Collaborator

will conflict with #236 -- mind reviewing that first?

Reviewers tagged as org/team-slug are resolved via the Github teams API
and passed as teamIds to requestReviews. Github does not support teams
as assignees; since Github usernames cannot contain "/", any org/slug
entry in Assignees is unambiguously invalid and raises a usage error.
auto_add_users=r2a/both likewise does not copy teams from Reviewers
into Assignees.

To avoid repeatedly triggering Github's code review auto-assignment,
team membership is fetched alongside the team id and the team is not
re-requested when one of its members is already a reviewer on the PR.
Teams with more than 100 members fall back to always re-requesting.  We
emit a warning when either of these happens.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Topic: teams
Reviewers: jerry,brian-k
@aaron-skydio
aaron-skydio force-pushed the aaron/revup/main/teams branch from b5279c6 to f3ae84f Compare April 28, 2026 23:10
@aaron-skydio

Copy link
Copy Markdown
Contributor Author

oh boy. yeah will get to that, and feel free to not review this until i do

@aaron-skydio

Copy link
Copy Markdown
Contributor Author

looking at the description there, very nice and yeah i'll just put this on top of that one

@jerry-skydio

Copy link
Copy Markdown
Collaborator

oh hey it doesn't conflict after all

@jerry-skydio
jerry-skydio merged commit 956c09c into main May 19, 2026
5 checks passed
@jerry-skydio
jerry-skydio deleted the aaron/revup/main/teams branch May 19, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants