lib/reviewer/github.rb in danger-reviewer-0.0.2.2 vs lib/reviewer/github.rb in danger-reviewer-0.0.3
- old
+ new
@@ -62,16 +62,25 @@
}
}
GRAPHQL
ReviewerQuery = GitHub::Client.parse <<-'GRAPHQL'
- query($owner:String!, $repo:String!, $number:Int!) {
+ query ($owner: String!, $repo: String!, $number: Int!) {
repository(name: $repo, owner: $owner) {
pullRequest(number: $number) {
reviewRequests(first: 10) {
edges {
node {
reviewer {
+ login
+ }
+ }
+ }
+ }
+ reviews(first: 10) {
+ edges {
+ node {
+ author {
login
}
}
}
}