Skip to content

Commit 06a6001

Browse files
chore: add missing optional create parameter for approval_rules
Add missing optional create parameter ('protected_branch_ids') to the project approvalrules. https://docs.gitlab.com/ee/api/merge_request_approvals.html#create-project-level-rule
1 parent a11623b commit 06a6001

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)