utils/github: use #fetch
Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
parent
f873835b97
commit
03d9a3dda5
@ -915,8 +915,8 @@ module GitHub
|
||||
homebrew_prs_count = 0
|
||||
|
||||
API.paginate_graphql(query) do |result|
|
||||
data = result["viewer"]
|
||||
github_user = data["login"]
|
||||
data = result.fetch("viewer")
|
||||
github_user = data.fetch("login")
|
||||
|
||||
# BrewTestBot can open as many PRs as it wants.
|
||||
return false if github_user.casecmp("brewtestbot").zero?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user