Skip to content

Commit

Permalink
Merge pull request #18200 from Homebrew/graphql-debug
Browse files Browse the repository at this point in the history
utils/github/api: add debug output for `open_graphql`
  • Loading branch information
carlocab authored Aug 30, 2024
2 parents 67398c7 + 7645484 commit ade587b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/utils/github/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def self.paginate_rest(url, additional_query_params: nil, per_page: 100, scopes:
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?
Expand Down

0 comments on commit ade587b

Please sign in to comment.