Skip to content

Document reading pages of items #970

Open
@eric-5512

Description

@eric-5512

Return open or closed issues in pagination

public List<GHIssue> getIssues(GHIssueState state) throws IOException {
        return this.listIssues(state).toList();
    }

    public List<GHIssue> getIssues(GHIssueState state, GHMilestone milestone) throws IOException {
        Requester requester = (Requester)((Requester)this.root.createRequest().with("state", state)).with("milestone", milestone == null ? "none" : "" + milestone.getNumber());
        return ((Requester)requester.withUrlPath(this.getApiTailUrl("issues"), new String[0])).toIterable(GHIssue[].class, (item) -> {
            item.wrap(this);
        }).toList();
    }

I didn’t see any support for paging

image

Need to manually specify page and pre_page

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions