areusch commented on a change in pull request #10734:
URL: https://github.com/apache/tvm/pull/10734#discussion_r833731723
##########
File path: tests/scripts/github_cc_reviewers.py
##########
@@ -66,8 +67,36 @@ def find_reviewers(body: str) -> List[str]:
if body is None:
body = ""
- to_add = find_reviewers(body)
- print("Adding reviewers:", to_add)
+ new_reviewers = find_reviewers(body)
+ print("Found these reviewers:", new_reviewers)
+
+ if args.testing_reviews_json:
+ existing_reviews = json.loads(args.testing_reviews_json)
+ else:
+ github = GitHubRepo(token=os.environ["GITHUB_TOKEN"], user=user,
repo=repo)
+ existing_reviews = github.get(f"pulls/{number}/reviews")
+
+ existing_review_users = [review["user"]["login"] for review in
existing_reviews]
Review comment:
should we also analyze the state of the review?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]