question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document reading pages of items

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bitwisemancommented, Nov 24, 2020

@eric-5512 I’m sorry, I’m still not understanding.

GHIssueState state;
List<GHIssue> page; 
PagedIterator<GHIssue> iterator = listIssues(state).withPageSize(20).iterator()
while (iterator.hasNext()) {
  page = iterator. nextPage();
}

https://github.com/hub4j/github-api/blob/3a11b7ccbf5ef80e6231c15b539c5d386f827caf/src/main/java/org/kohsuke/github/PagedIterator.java#L120

If you’re talking about paging forward and back or selecting a specific page, see #348.

0reactions
bitwisemancommented, Mar 15, 2021

I’m going to leave this open as a documentation issue. It would be helpful to have a doc that covers this behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading Order tool for PDFs (Acrobat Pro) - Adobe Support
The Reading Order tool in Adobe Acrobat provides the easiest and quickest way to fix reading order and basic tagging problems.
Read more >
Read documents in Word - Microsoft Support
Common reading tools are built in right into Word: page through a document, add comments, define and translate words, and copy or highlight...
Read more >
How to Quickly Scan Books, Documents and Other Items into ...
CZUR Shine Ultra Pro: https://shop.czur.com/ products /czur-shine-ultra-proThe CZUR Shine Ultra Pro is an amazing scanner that does quite a ...
Read more >
Intro to word-processing and page layout documents in Pages ...
A page layout document is like a canvas that you add text boxes, images, and other objects to, then arrange the objects on...
Read more >
Navigating Web Pages - Freedom Scientific
Reading Text. JAWS uses the Virtual Cursor to move through HTML pages, enabling JAWS users to read and select text and move to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found