##// END OF EJS Templates
pull-requests: make sure to skip duplicates of reviewers via PR create method.
dan -
r1793:f248a72c default
parent child Browse files
Show More
@@ -442,8 +442,12 b' class PullRequestModel(BaseModel):'
442 # members / reviewers
442 # members / reviewers
443 for reviewer_object in reviewers:
443 for reviewer_object in reviewers:
444 user_id, reasons, mandatory = reviewer_object
444 user_id, reasons, mandatory = reviewer_object
445 user = self._get_user(user_id)
445
446
446 user = self._get_user(user_id)
447 # skip duplicates
448 if user.user_id in reviewer_ids:
449 continue
450
447 reviewer_ids.add(user.user_id)
451 reviewer_ids.add(user.user_id)
448
452
449 reviewer = PullRequestReviewers()
453 reviewer = PullRequestReviewers()
General Comments 0
You need to be logged in to leave comments. Login now