Skip to content

Paginate API calls in Documentation Team Approval check - #39409

Open
hestonhoffman wants to merge 1 commit into
masterfrom
heston/paginate-codeowner-review-status
Open

Paginate API calls in Documentation Team Approval check#39409
hestonhoffman wants to merge 1 commit into
masterfrom
heston/paginate-codeowner-review-status

Conversation

@hestonhoffman

@hestonhoffman hestonhoffman commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Paginates the GitHub API list calls in the "Documentation Team Approval" workflow.

We've been seeing this more frequently recently and a fix was proposed in #documentation.

pulls.listReviews was called without pagination, so it read only the first 30 reviews. On a PR with more reviews than that, a documentation-team approval past the cutoff was invisible, and the workflow published a failing required status on an approved PR.

Also paginates the two teams.listMembersInOrg calls and raises the page size on listRequestedReviewers, which have the same defect but are under the limit today. I looked into rate limiting and this shouldn't have much impact.

listReviews was called without pagination, so it only read the first
30 reviews. On PRs with many review rounds, team approvals beyond the
first page were invisible and the check published a failing
"Documentation Team Approval" status despite a valid approval.

Also paginate the team member lookups and raise the page size on
requested reviewers, so the same truncation cannot recur as teams grow.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the Github Related to Github configurations label Aug 21, 2026
@hestonhoffman
hestonhoffman marked this pull request as ready for review August 21, 2026 22:21
@hestonhoffman
hestonhoffman requested a review from a team as a code owner August 21, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Github Related to Github configurations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant