Skip to content

Commit

Permalink
utils/github/api: add debug output for open_graphql
Browse files Browse the repository at this point in the history
Our updating sponsors/maintainers/etc workflow is broken.

Let's add some debug output to help me fix it.
  • Loading branch information
carlocab committed Aug 30, 2024
1 parent 67398c7 commit 7645484
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

Check warning on line 337 in Library/Homebrew/utils/github/api.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/utils/github/api.rb#L337

Added line #L337 was not covered by tests

if raise_errors
if result["errors"].present?
Expand Down

0 comments on commit 7645484

Please sign in to comment.