Merge pull request #18200 from Homebrew/graphql-debug
utils/github/api: add debug output for `open_graphql`
This commit is contained in:
commit
ade587b455
@ -334,6 +334,7 @@ module GitHub
|
|||||||
def self.open_graphql(query, variables: nil, scopes: [].freeze, raise_errors: true)
|
def self.open_graphql(query, variables: nil, scopes: [].freeze, raise_errors: true)
|
||||||
data = { query:, variables: }
|
data = { query:, variables: }
|
||||||
result = open_rest("#{API_URL}/graphql", scopes:, data:, request_method: "POST")
|
result = open_rest("#{API_URL}/graphql", scopes:, data:, request_method: "POST")
|
||||||
|
odebug "GraphQL Query Response", result
|
||||||
|
|
||||||
if raise_errors
|
if raise_errors
|
||||||
if result["errors"].present?
|
if result["errors"].present?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user