Skip to content

Add iter_pull_request_reviews for sync and async clients - #105

Closed
arjunsreelatha wants to merge 1 commit into
prooflinedev:mainfrom
arjunsreelatha:feature/iter-pull-request-reviews
Closed

arjunsreelatha wants to merge 1 commit into
prooflinedev:mainfrom
arjunsreelatha:feature/iter-pull-request-reviews

Conversation

@arjunsreelatha

Copy link
Copy Markdown

list_pull_request_reviews returns one page, and no iterator followed its cursor. Add iter_pull_request_reviews to both clients. It mirrors iter_reviews: it keeps filters on every request, bounds pages and items, refuses repeated or missing cursors, and raises pagination-limit instead of appearing complete when a bound is exhausted.

Tests cover cursor following with filters preserved, cursor cycles, max_pages and max_items bounds, and invalid page_size rejected before any request.

list_pull_request_reviews returns one page, and no iterator followed its
cursor. Add iter_pull_request_reviews to both clients. It mirrors
iter_reviews: it keeps filters on every request, bounds pages and items,
refuses repeated or missing cursors, and raises pagination-limit instead
of appearing complete when a bound is exhausted.

Tests cover cursor following with filters preserved, cursor cycles,
max_pages and max_items bounds, and invalid page_size rejected before any
request.
@arjunsreelatha

Copy link
Copy Markdown
Author

Opened by mistake. I meant to open this pull request from my fork, arjunsreelatha/sdk-python, and have closed it here. Sorry for the noise.

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.

1 participant