feature: implements locking feature for AI review button; adds detailed audit logging
This commit is contained in:
parent
32952f105b
commit
6e3aa8ed6b
10 changed files with 279 additions and 44 deletions
|
|
@ -1532,9 +1532,10 @@ class PullRequestModel(BaseModel):
|
|||
raise ValueError("This pull request is closed")
|
||||
|
||||
reviewers = {}
|
||||
for user_id, reasons, mandatory, role, rules in reviewer_data:
|
||||
for user_id, reasons, mandatory, role, _ in reviewer_data:
|
||||
if isinstance(user_id, (int, str)):
|
||||
user_id = self._get_user(user_id).user_id
|
||||
|
||||
reviewers[user_id] = {"reasons": reasons, "mandatory": mandatory, "role": role}
|
||||
|
||||
reviewers_ids = set(reviewers.keys())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue