Merge pull request #18200 from Homebrew/graphql-debug

utils/github/api: add debug output for `open_graphql`
This commit is contained in:
Carlo Cabrera 2024-08-30 10:31:50 +08:00 committed by GitHub
commit ade587b455
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -334,6 +334,7 @@ module GitHub
def self.open_graphql(query, variables: nil, scopes: [].freeze, raise_errors: true)
data = { query:, variables: }
result = open_rest("#{API_URL}/graphql", scopes:, data:, request_method: "POST")
odebug "GraphQL Query Response", result
if raise_errors
if result["errors"].present?