Skip to content

feat(client): add iter_pull_request_reviews for pull request review history - #102

Closed
P1Manav wants to merge 1 commit into
prooflinedev:mainfrom
P1Manav:feat-iter-pull-request-reviews-101
Closed

P1Manav wants to merge 1 commit into
prooflinedev:mainfrom
P1Manav:feat-iter-pull-request-reviews-101

Conversation

@P1Manav

@P1Manav P1Manav commented Nov 24, 2026

Copy link
Copy Markdown

Summary

Closes #101

  • Add iter_pull_request_reviews() to ProoflineClient and AsyncProoflineClient to paginate the review runs of a single pull request using the existing list_pull_request_reviews() operation.
  • Reuses the standard bounded pagination safeguards (page_size, max_pages, max_items, _page_limits), cursor cycle detection, and error semantics (pagination-limit, invalid-pagination) established by iter_reviews().
  • Add test coverage in tests/test_http.py (test_pull_request_cursor_pagination_preserves_filters_and_refuses_cycles_or_bounds) covering both sync and async modes, query filter preservation, cursor continuation, cursor loop refusal, and bound enforcement.

Verification

  • ruff check proofline tests — all checks passed
  • ruff format --check proofline tests — all formatted
  • mypy proofline — 0 issues
  • pytest -k test_pull_request_cursor_pagination — 2 passed
  • pytest — 220 passed

@mohsen1

mohsen1 commented Dec 6, 2026

Copy link
Copy Markdown
Member

Thanks for adding review history coverage. I’m closing this as a duplicate of #90. Both PRs make the same iterator changes in the SDK. #90 also registers the new method in the public operation check and has a passing CI run.

@mohsen1 mohsen1 closed this Dec 6, 2026
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.

Add iter_pull_request_reviews for paginating a pull request's review history

2 participants