Skip to content

Commit

Permalink
Add First and Last parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Nov 1, 2022
1 parent 7ac3a57 commit 56458ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions github/github.go
Expand Up @@ -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"`

Expand Down

0 comments on commit 56458ef

Please sign in to comment.