lib/reviewer/plugin.rb in danger-reviewer-0.0.2.2 vs lib/reviewer/plugin.rb in danger-reviewer-0.0.3

- old
+ new

@@ -71,10 +71,13 @@ def current_reviewers owner, repo = env.ci_source.repo_slug.split('/') result = GitHub::Client.query(GitHub::ReviewerQuery, variables: { repo: repo, owner: owner, number: github.pr_json[:number] }) - result.data.repository.pull_request.review_requests.edges.map { |edge| edge.node.reviewer.login } + [ + result.data.repository.pull_request.review_requests.edges.map { |edge| edge.node.reviewer.login }, + result.data.repository.pull_request.reviews.edges.map { |edge| edge.node.author.login }, + ].flatten.uniq end def team_members(team) owner, repo = env.ci_source.repo_slug.split('/') result = GitHub::Client.query(GitHub::MemberQuery, variables: { organization: owner, team: team})