Skip to content

Commit

Permalink
Properly handle the labels attribute in ProjectMergeRequest
Browse files Browse the repository at this point in the history
This should have made it into e09581f but something went wrong
(probably a PEBCAK).

Closes #325
  • Loading branch information
Gauvain Pocentek committed Sep 27, 2017
1 parent 9484106 commit 69f1045
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gitlab/v4/objects.py
Expand Up @@ -1213,6 +1213,12 @@ class ProjectMergeRequestManager(CRUDMixin, RESTManager):
'milestone_id'))
_list_filters = ('iids', 'state', 'order_by', 'sort')

def _sanitize_data(self, data, action):
new_data = data.copy()
if 'labels' in data:
new_data['labels'] = ','.join(data['labels'])
return new_data


class ProjectMilestone(SaveMixin, ObjectDeleteMixin, RESTObject):
_short_print_attr = 'title'
Expand Down

0 comments on commit 69f1045

Please sign in to comment.