8000 MR: add the squash attribute for create/update · python-gitlab/python-gitlab@35c8c82 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35c8c82

Browse files
author
Gauvain Pocentek
committed
MR: add the squash attribute for create/update
Closes #557
1 parent 32ae924 commit 35c8c82

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gitlab/v4/objects.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,13 +2219,14 @@ class ProjectMergeRequestManager(CRUDMixin, RESTManager):
22192219
_create_attrs = (
22202220
('source_branch', 'target_branch', 'title'),
22212221
('assignee_id', 'description', 'target_project_id', 'labels',
2222-
'milestone_id', 'remove_source_branch', 'allow_maintainer_to_push')
2222+
'milestone_id', 'remove_source_branch', 'allow_maintainer_to_push',
2223+
'squash')
22232224
)
2224-
_update_attrs = (tuple(),
2225-
('target_branch', 'assignee_id', 'title', 'description',
2226-
'state_event', 'labels', 'milestone_id',
2227-
'remove_source_branch', 'discussion_locked',
2228-
'allow_maintainer_to_push'))
2225+
_update_attrs = (
2226+
tuple(),
2227+
('target_branch', 'assignee_id', 'title', 'description', 'state_event',
2228+
'labels', 'milestone_id', 'remove_source_branch', 'discussion_locked',
2229+
'allow_maintainer_to_push', 'squash'))
22292230
_list_filters = ('state', 'order_by', 'sort', 'milestone', 'view',
22302231
'labels', 'created_after', 'created_before',
22312232
'updated_after', 'updated_before', 'scope', 'author_id',

0 commit comments

Comments
 (0)
0