MCPcopy
hub / github.com/github/github-mcp-server / buildPageInfo

Function buildPageInfo

pkg/github/params.go:445–452  ·  view source on GitHub ↗
(resp *github.Response)

Source from the content-addressed store, hash-verified

443}
444
445func buildPageInfo(resp *github.Response) pageInfo {
446 return pageInfo{
447 HasNextPage: resp.After != "",
448 HasPreviousPage: resp.Before != "",
449 NextCursor: resp.After,
450 PrevCursor: resp.Before,
451 }
452}
453
454// ToGraphQLParams converts cursor pagination parameters to GraphQL-specific parameters.
455func (p CursorPaginationParams) ToGraphQLParams() (*GraphQLPaginationParams, error) {

Callers 5

listProjectsFunction · 0.85
listProjectFieldsFunction · 0.85
listProjectItemsFunction · 0.85
ListDependabotAlertsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected