From d16e699ed7a2d6f6cbd53b2a75c2dd1b15c6bfde Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Wed, 1 Jul 2020 22:25:53 +1000 Subject: [PATCH] github: need read-only email scope to see emails --- Library/Homebrew/utils/github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index dd89ac4ccd..cc7fa75cd7 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -413,7 +413,7 @@ module GitHub } EOS } - result = open_api(url, data: data, request_method: "POST") + result = open_api(url, scopes: ["user:email"], data: data, request_method: "POST") raise Error, result["errors"] if result["errors"].present? reviews = result["data"]["repository"]["pullRequest"]["reviews"]["nodes"]