summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-05-31 21:45:42 -0700
committerJohn L. Villalovos <john@sodarock.com>2021-05-31 21:47:23 -0700
commit06a600136bdb33bdbd84233303652afb36fb8a1b (patch)
treeb964ab35824d75ed2ac96442f0650ae0dfd19beb /gitlab/v4/objects
parenta11623b1aa6998e6520f3975f0f3f2613ceee5fb (diff)
downloadgitlab-06a600136bdb33bdbd84233303652afb36fb8a1b.tar.gz
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
Diffstat (limited to 'gitlab/v4/objects')
-rw-r--r--gitlab/v4/objects/merge_request_approvals.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/v4/objects/merge_request_approvals.py b/gitlab/v4/objects/merge_request_approvals.py
index 407da2e..4a41ca4 100644
--- a/gitlab/v4/objects/merge_request_approvals.py
+++ b/gitlab/v4/objects/merge_request_approvals.py
@@ -72,7 +72,8 @@ class ProjectApprovalRuleManager(
_obj_cls = ProjectApprovalRule
_from_parent_attrs = {"project_id": "id"}
_create_attrs = RequiredOptional(
- required=("name", "approvals_required"), optional=("user_ids", "group_ids")
+ required=("name", "approvals_required"),
+ optional=("user_ids", "group_ids", "protected_branch_ids"),
)