Skip to content

Commit 1714d0a

Browse files
nejchJohnVillalovos
authored andcommitted
fix(cli): add missing attributes for creating MRs
1 parent 20c46a0 commit 1714d0a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

gitlab/v4/objects/merge_requests.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,18 @@ class ProjectMergeRequestManager(CRUDMixin, RESTManager):
401401
_create_attrs = RequiredOptional(
402402
required=("source_branch", "target_branch", "title"),
403403
optional=(
404+
"allow_collaboration",
405+
"allow_maintainer_to_push",
406+
"approvals_before_merge",
404407
"assignee_id",
408+
"assignee_ids",
405409
"description",
406-
"target_project_id",
407410
"labels",
408411
"milestone_id",
409412
"remove_source_branch",
410-
"allow_maintainer_to_push",
411-
"squash",
412413
"reviewer_ids",
414+
"squash",
415+
"target_project_id",
413416
),
414417
)
415418
_update_attrs = RequiredOptional(

0 commit comments

Comments
 (0)