Skip to content

Commit a2b8c8c

Browse files
nickbroonnejch
authored andcommitted
feat: usernames support for MR approvals
This can be used instead of 'user_ids' See: https://docs.gitlab.com/ee/api/merge_request_approvals.html#create-project-level-rule
1 parent f310764 commit a2b8c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v4/objects/merge_request_approvals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class ProjectApprovalRuleManager(
6363
_from_parent_attrs = {"project_id": "id"}
6464
_create_attrs = RequiredOptional(
6565
required=("name", "approvals_required"),
66-
optional=("user_ids", "group_ids", "protected_branch_ids"),
66+
optional=("user_ids", "group_ids", "protected_branch_ids", "usernames"),
6767
)
6868

6969

0 commit comments

Comments
 (0)