Skip to content

Retrieve more items from the REST API per call #442

Open
@variableresistor

Description

@variableresistor

Feature Idea Summary

Add support for varying page sizes using the per_page parameter.

Feature Idea Additional Details

We have a large number of repos, and it's far faster to retrieve as many as possible in a single request. GitHub's REST API supports the per_page parameter that allows us to retrieve up to 100 items (for the endpoints I checked), defaulting to 30 items.

Requested Assignment

I can do it, but it seems a bit complex, based on Invoke-GHRestMethodMultipleResult. So I might have to have guidance as far as the standards I need to follow in this function.

Operating System

All

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module Version

Running: 0.17.0
Installed: 0.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn issue or pull request introducing new functionality to the project.triage neededAn issue that needs to be reviewed by a member of the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions