octokit / octokit.rb

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

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

Open jp524 opened 9 months ago

jp524 commented 9 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 9 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! 🚀

github-actions[bot] commented 4 days ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!