github-api
github-api copied to clipboard
GHHooks does not get all the hooks with pagination
getHooks() does not get all the hooks and only gets the first page of the response GHHooks getHooks() method does not get all the hooks when called and only retrieves the first page from the github call.
https://github.com/hub4j/github-api/blob/github-api-1.115/src/main/java/org/kohsuke/github/GHHooks.java#L29
To Reproduce Steps to reproduce the behaviour:
- Create a repository with more than 30 webhooks , say 100
- Using Github api plugin call the getHooks() method on the above repository and you would realise that only first 30 hooks are being fetched.
Expected behavior getHooks() should return all the hooks available even if it has multiple pages or provide an option to paginate through the response.
Desktop (please complete the following information):
- OS: Linux
- Version 1.115