Repository navigation
Add bounded PR review history iteration using shared pagination - #114
Open
jabbertones-cloud wants to merge 1 commit into
Open
jabbertones-cloud wants to merge 1 commit into
jabbertones-cloud wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Problem
An SDK consumer that needs a pull request's complete review history currently has to implement its own cursor traversal and limits around
list_pull_request_reviews.Implementation
Adds
iter_pull_request_reviewsto both clients. Extracts the existing iterator loop into a private helper for each sync/async client so organization-wide and PR-scoped iteration use the same page/item bounds, cursor checks and error behavior. The request callback preserves organization, repository and PR coordinates; caller filters are copied rather than mutated. The public-operation contract and README are updated.Addresses #101. I noticed #90, #102 and #108 cover the same feature. This is an independently implemented alternative that shares the full existing iterator loop rather than introducing additional copies of it. Happy for maintainers to choose one approach or use only the useful tests.
Verification
Base:
663f4d8b0cb7f00a986d98d042332cc4b0c0fd44.Tested head:
53f74b0c5434865f50e27ae263ef07209b29ab3c.Reproduce with the repository's pinned development dependencies, then
python -m pytest -q,python scripts/contracts.py,python -m ruff check .andpython -m mypy proofline.No live service credentials were used. The change is scoped to SDK behavior; generated API code and server behavior are unchanged. AI assistance was used to research, implement and test this contribution.