Content-Length: 272289 | pFad | http://github.com/github/github-mcp-server/commit/d2dd8f2e0522d647c8b0f014cd19f9c270147ad7

C6 linter fix · github/github-mcp-server@d2dd8f2 · GitHub
Skip to content

Commit d2dd8f2

Browse files
committed
linter fix
1 parent 6d00394 commit d2dd8f2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/github/server.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,12 @@ type UnifiedPaginationParams struct {
246246
// ToGraphQLParams converts REST API pagination parameters to GraphQL-specific parameters.
247247
// This converts page/perPage to first parameter for GraphQL queries.
248248
func (u UnifiedPaginationParams) 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)
249+
perPage := u.PerPage
250+
if perPage > 2147483647 {
251+
perPage = 100
252+
}
253+
first := int32(perPage)
254+
253255
return GraphQLPaginationParams{
254256
First: &first,
255257
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/commit/d2dd8f2e0522d647c8b0f014cd19f9c270147ad7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy