Skip to content

Commit

Permalink
Merge pull request #1488 from JohnVillalovos/jlvillal/add_missing_option
Browse files Browse the repository at this point in the history
chore: add missing optional create parameter for approval_rules
  • Loading branch information
nejch committed Jun 1, 2021
2 parents a11623b + 06a6001 commit ac92205
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitlab/v4/objects/merge_request_approvals.py
Expand Up @@ -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"),
)


Expand Down

0 comments on commit ac92205

Please sign in to comment.