Repository navigation
Use a var instead of a secret for reviewer weights - #9357
Merged
Merged
Conversation
This will make the weights public, but also viewable and editable, which seems useful.
tlively
marked this pull request as ready for review
November 6, 2026 22:20
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
brendandahl
approved these changes
Nov 6, 2026
tlively
added a commit
that referenced
this pull request
Nov 9, 2026
The single GraphQL query in scripts/assign_reviewer.py fetched 100 recent PRs with three nested first: 100 connections (latestReviews, reviewRequests, and timelineItems) in one request, which intermittently exceeded GitHub's 10-second GraphQL execution timeout and failed with HTTP 502 (such as on PR #9357 and PR #9368). Split the initial team and target PR lookup into SETUP_QUERY so closed, draft, or already-assigned PRs exit early without fetching PR history, paginate RECENT_PRS_QUERY across two pages of 50 PRs with first: 20 on latestReviews and reviewRequests, and retry transient GitHub API 5xx errors in gh_api with exponential backoff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This will make the weights public, but also viewable and editable, which seems useful.