github-api icon indicating copy to clipboard operation
github-api copied to clipboard

GHRepository.getLastCommitStatus() reads all statuses to find last status

Open bitwiseman opened this issue 5 years ago • 0 comments

https://github.com/github-api/github-api/blob/bccae94c7a740fa7ba297fd6eb2a6782ed156a98/src/main/java/org/kohsuke/github/GHRepository.java#L1771-L1774

This is fine for a few pages, but bad beyond three pages.

This points to a need for last(), first(), count(), and other methods to be added to PagedIterable or better PagedIterator.

bitwiseman avatar Mar 17 '20 18:03 bitwiseman