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

Function DataResponse

internal/githubv4mock/githubv4mock.go:73–77  ·  view source on GitHub ↗

DataResponse is the happy path response constructor for a mocked GraphQL request.

(data map[string]any)

Source from the content-addressed store, hash-verified

71
72// DataResponse is the happy path response constructor for a mocked GraphQL request.
73func DataResponse(data map[string]any) GQLResponse {
74 return GQLResponse{
75 Data: data,
76 }
77}
78
79// ErrorResponse is the unhappy path response constructor for a mocked GraphQL request.\
80// Note that for the moment it is only possible to return a single error message.

Calls

no outgoing calls