X Tutup
Skip to content

Commit a1609fb

Browse files
feat(projects): add optional parameter to set approval rule on all protected branches.
1 parent 3eda669 commit a1609fb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gitlab/v4/objects/merge_request_approvals.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ class ProjectApprovalRuleManager(
9090
_from_parent_attrs = {"project_id": "id"}
9191
_create_attrs = RequiredOptional(
9292
required=("name", "approvals_required"),
93-
optional=("user_ids", "group_ids", "protected_branch_ids", "usernames"),
93+
optional=(
94+
"user_ids",
95+
"group_ids",
96+
"protected_branch_ids",
97+
"usernames",
98+
"applies_to_all_protected_branches",
99+
),
94100
)
95101

96102

0 commit comments

Comments
 (0)
X Tutup