Merge pull request #7866 from jonchang/github-email-scopes
github: need read-only email scope to see emails
This commit is contained in:
commit
7360d14f5c
@ -413,7 +413,7 @@ module GitHub
|
|||||||
}
|
}
|
||||||
EOS
|
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?
|
raise Error, result["errors"] if result["errors"].present?
|
||||||
|
|
||||||
reviews = result["data"]["repository"]["pullRequest"]["reviews"]["nodes"]
|
reviews = result["data"]["repository"]["pullRequest"]["reviews"]["nodes"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user