(name string)
| 163 | } |
| 164 | |
| 165 | func (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 |
no outgoing calls
no test coverage detected