driazati commented on a change in pull request #10734:
URL: https://github.com/apache/tvm/pull/10734#discussion_r833732708
##########
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:
since this is just for notifying I don't think we need to, regardless of
whether its approved/pending/changes requested the bot shouldn't take any
action if the person is already in the review box
--
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]