terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[FEAT]: github_repositories allow pagination

Open scott-doyland-burrows opened this issue 1 year ago • 0 comments

Describe the need

The github_repositories resource allows 1000 repos to be returned. It says this is a limit of the API.

However, when calling the API directly I can paginate the results (with 100 results per page), allowing me to actually obtain a list of ALL repos.

We have 2000 repos and I can just add onto the API call the following, which will give me the last 100 repos.

page=20&per_page=100

By altering the page= I can eventually list all repos.

The terraform resource should allow similar functionality, where I can pass in a page.

Thanks

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

scott-doyland-burrows avatar Jul 11 '24 06:07 scott-doyland-burrows