Skip to content

Shouldn't we handle paging? #188

@Nikoloutsos

Description

@Nikoloutsos

Hello 👋

Recently was in need to fetch some data from GitHub API and I decided to use this library instead of creating my own API calls manually.
Then I realized that there is no easy way to get all contents by handling paging with running the following example.

let issues = try await Octokit(config).issues(owner: "freeCodeCamp", repository: "freeCodeCamp")
// returns 100 issues while it should return 188.

I think it would be nice enhancement for this library to give the option to the developer to choose if he wants to get all content.

What do you say?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions