Skip to content

get_review_comments (and possibly other methods) paging but with sorting by recent #1297

@michael-budnik

Description

@michael-budnik

Describe the feature or problem you’d like to solve

I have a moderately big PR, with few reviews rounds. When I want AI to focus on latest comments only , there's no way for it to page from the end. The response doesn't even include total count.
Even with 10 per page it hit a limit of 25k tokens! The latest review comments started at the 22th index. So had to fallback to 5 per page and do 5 calls. Which was about 50k tokens! I know graphql-like response filtering is on the radar and would also help with that.

Benefit

Would save a lot tokens for active PRs.

Additional context

CC trying to find the latest comments:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions