utils/github/api: add debug output for open_graphql

Our updating sponsors/maintainers/etc workflow is broken.

Let's add some debug output to help me fix it.
This commit is contained in:
Carlo Cabrera 2024-08-30 10:15:56 +08:00
parent 67398c7728
commit 7645484ac3
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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?