Closed
Description
The github api documentation shows that the /issues
api endpoints are paginated.
The pagination is information is returned in the header like this:
Link:[<https://github.com/api/issues?direc
tion=desc&filter=all&labels=&sort=updated&state=open&page=2>; rel="next",
Unfortunately as far as I can tell the go-github
package do not expose this information.
listIssues
does not return the Headers nor the response. What is in your opinion the best approach to fix this issue ?
- Changing the
method
signature to return theresponse.Headers
. - Changing the
method
signature to return theresponse
. - Changing the
method
signature to return a new struct that exposes some of the information returned in the response.Header
To put it in a nutshell I can't think of an easy way to make a backward compatible changes to fix this bug.
Metadata
Metadata
Assignees
Labels
No labels