utils/github: use #fetch

Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
Carlo Cabrera 2024-08-24 23:10:39 +08:00 committed by GitHub
parent f873835b97
commit 03d9a3dda5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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