octokit / octokit.rb

Ruby toolkit for the GitHub API
http://octokit.github.io/octokit.rb/
MIT License
3.83k stars 1.13k forks source link

[BUG]: `list_app_installation_repositories` does not return `rels` #1668

Open jp524 opened 4 months ago

jp524 commented 4 months ago

What happened?

I have a client created using an installation access token for a GitHub App. When I call list_app_installation_repositories on this client, I get the list of repositories but I don't get the links to access the previous and next pages. The code is as follow:

github_client = Octokit::Client.new(access_token: <INSTALLATION_ACCESS_TOKEN>)
response = github_client.list_app_installation_repositories
puts response.rels # returns nil
puts response[:repositories].count # returns 30

My understanding of the README's section on Pagination is that the API call should return links for pagination.

The GitHub API docs also state that this is a paginated resource.

Versions

Octokit.rb 8.1.0

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 4 months ago

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀