##// END OF EJS Templates
api: fix creation of PR with default reviewer rules.
marcink -
r2857:94b86345 default
parent child Browse files
Show More
@@ -485,7 +485,7 b' class PullRequestModel(BaseModel):'
485 reviewer.mandatory = mandatory
485 reviewer.mandatory = mandatory
486
486
487 # NOTE(marcink): pick only first rule for now
487 # NOTE(marcink): pick only first rule for now
488 rule_id = rules[0] if rules else None
488 rule_id = list(rules)[0] if rules else None
489 rule = RepoReviewRule.get(rule_id) if rule_id else None
489 rule = RepoReviewRule.get(rule_id) if rule_id else None
490 if rule:
490 if rule:
491 review_group = rule.user_group_vote_rule()
491 review_group = rule.user_group_vote_rule()
General Comments 0
You need to be logged in to leave comments. Login now