Skip to content

Commit ac92205

Browse files
authored
Merge pull request #1488 from JohnVillalovos/jlvillal/add_missing_option
chore: add missing optional create parameter for approval_rules
2 parents a11623b + 06a6001 commit ac92205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab/v4/objects/merge_request_approvals.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class ProjectApprovalRuleManager(
7272
_obj_cls = ProjectApprovalRule
7373
_from_parent_attrs = {"project_id": "id"}
7474
_create_attrs = RequiredOptional(
75-
required=("name", "approvals_required"), optional=("user_ids", "group_ids")
75+
required=("name", "approvals_required"),
76+
optional=("user_ids", "group_ids", "protected_branch_ids"),
7677
)
7778

7879

0 commit comments

Comments
 (0)