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 3, 2022
1 parent ca3e639 commit a29987e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions github/github.go
Expand Up @@ -237,6 +237,14 @@ 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 per page (max 100), starting from the first matching result.
// This parameter must not be used in combination with last.
First int `url:"first,omitempty"`

// For paginated result sets, the number of results per page (max 100), starting from the last matching result.
// This parameter must not be used in combination with first.
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 a29987e

Please sign in to comment.