Skip to content

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

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

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

This branch has not been deployed

No deployments
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

1 participant