MCPcopy Create free account
hub / github.com/cli/cli / request

Method request

script/ghmock/scaffold.go:165–172  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

163}
164
165func (q sentQuery) request(name string) loggedRequest {
166 operation := strings.TrimPrefix(name, "graphql ")
167 if operation == "<anonymous>" {
168 operation = ""
169 }
170 return loggedRequest{Name: name, Method: http.MethodPost, Host: dotcomAPIHost, Path: "/graphql",
171 GraphQL: &graphQLRequest{Query: q.query, Variables: q.vars, Operation: operation}}
172}
173
174// queriesFor returns the queries gh sent for a GraphQL request in the most
175// recent run that sent it, once each. Comparing versions can send more than

Callers 2

scaffoldGraphQLFunction · 0.80
onceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected