We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6d00394 commitd2dd8f2Copy full SHA for d2dd8f2
pkg/github/server.go
@@ -246,10 +246,12 @@ type UnifiedPaginationParams struct {
246
// ToGraphQLParams converts REST API pagination parameters to GraphQL-specific parameters.
247
// This converts page/perPage to first parameter for GraphQL queries.
248
func (uUnifiedPaginationParams)ToGraphQLParams()GraphQLPaginationParams {
249
-// Convert page/perPage to GraphQL parameters
250
-// For GraphQL, we use 'first' for perPage and ignore page for the initial request
251
-// (subsequent requests would use 'after' cursor from previous response)
252
-first:=int32(u.PerPage)
+perPage:=u.PerPage
+ifperPage>2147483647 {
+perPage=100
+}
253
+first:=int32(perPage)
254
+
255
returnGraphQLPaginationParams{
256
First:&first,
257
}