Skip to content

Commit 62c4c36

Browse files
authored
Merge pull request #104 from sommersoft/core_reviewers
Retrieve All Reviewers
2 parents 9869a7c + 164a416 commit 62c4c36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

adabot/lib/circuitpython_library_validators.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,11 @@ def gather_insights(self, repo, insights, since):
781781
insights["merged_prs"] += 1
782782
insights["pr_merged_authors"].add(pr_info["user"]["login"])
783783
insights["pr_reviewers"].add(pr_info["merged_by"]["login"])
784+
pr_reviews = github.get(str(pr_info["url"]) + "/reviews")
785+
if pr_reviews.ok:
786+
for review in pr_reviews.json():
787+
if review["state"].lower() == "approved":
788+
insights["pr_reviewers"].add(review["user"]["login"])
784789
else:
785790
insights["closed_prs"] += 1
786791
else:

0 commit comments

Comments
 (0)