From a29987e5b3df374bdd39022c5a4686c025894465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Tue, 1 Nov 2022 16:42:58 +0100 Subject: [PATCH] Add First and Last parameters --- github/github.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/github/github.go b/github/github.go index 2883c38050..aa52d6ee3e 100644 --- a/github/github.go +++ b/github/github.go @@ -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"`