Open
Description
-
Give
Client
(but notEndpoint
) the following method:def graphql( self, query: str, variables: dict[str, Any] | None = None, *, headers: HeadersType = None, timeout: TimeoutType = None, raw: bool = False, ) -> Any
This method makes a
POST
request tof"{api_url}/graphql"
. Unless a different value (possiblyNone
) is set inheaders
, the request's headers will include "X-Github-Next-Global-ID: 1".- Don't set the X-GitHub-Api-Version header?
- Don't set the Accept header?
-
graphql()
should use (almost?) the same retrying logic as the main API code. -
graphql()
should not insert a mutation delay betweenPOST
requests. -
Use this method in
reponews
.