diff --git a/github/github.go b/github/github.go index 2883c380503..17706b0780d 100644 --- a/github/github.go +++ b/github/github.go @@ -237,6 +237,12 @@ type ListCursorOptions struct { // For paginated result sets, the number of results to include per page. PerPage int `url:"per_page,omitempty"` + // For paginated result sets, the number of results to include per page starting from the first matching result. + First int `url:"first,omitempty"` + + // For paginated result sets, the number of results to include per page starting from the last matching result. + Last int `url:"last,omitempty"` + // A cursor, as given in the Link header. If specified, the query only searches for events after this cursor. After string `url:"after,omitempty"`