Skip to content

Commit 164a416

Browse files
committed
retrieve all reviewers in 'lib/cirpy_lib_validators.gather_insights'
1 parent 9869a7c commit 164a416

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)