Skip to content

Commit 2332904

Browse files
author
Gauvain Pocentek
committed
Update MR attributes
1 parent 9be50be commit 2332904

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

gitlab/v4/objects.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,18 @@ class ProjectMergeRequestManager(CRUDMixin, RESTManager):
18561856
_create_attrs = (
18571857
('source_branch', 'target_branch', 'title'),
18581858
('assignee_id', 'description', 'target_project_id', 'labels',
1859-
'milestone_id', 'remove_source_branch')
1859+
'milestone_id', 'remove_source_branch', 'allow_maintainer_to_push')
18601860
)
1861-
_update_attrs = (tuple(), ('target_branch', 'assignee_id', 'title',
1862-
'description', 'state_event', 'labels',
1863-
'milestone_id'))
1864-
_list_filters = ('iids', 'state', 'order_by', 'sort')
1861+
_update_attrs = (tuple(),
1862+
('target_branch', 'assignee_id', 'title', 'description',
1863+
'state_event', 'labels', 'milestone_id',
1864+
'remove_source_branch', 'discussion_locked',
1865+
'allow_maintainer_to_push'))
1866+
_list_filters = ('state', 'order_by', 'sort', 'milestone', 'view',
1867+
'labels', 'created_after', 'created_before',
1868+
'updated_after', 'updated_before', 'scope', 'author_id',
1869+
'assignee_id', 'my_reaction_emoji', 'source_branch',
1870+
'target_branch', 'search')
18651871
_types = {'labels': types.ListAttribute}
18661872

18671873

0 commit comments

Comments
 (0)