Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit69f1045

Browse files
author
Gauvain Pocentek
committed
Properly handle the labels attribute in ProjectMergeRequest
This should have made it intoe09581f but something went wrong(probably a PEBCAK).Closes#325
1 parent9484106 commit69f1045

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎gitlab/v4/objects.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,12 @@ class ProjectMergeRequestManager(CRUDMixin, RESTManager):
12131213
'milestone_id'))
12141214
_list_filters= ('iids','state','order_by','sort')
12151215

1216+
def_sanitize_data(self,data,action):
1217+
new_data=data.copy()
1218+
if'labels'indata:
1219+
new_data['labels']=','.join(data['labels'])
1220+
returnnew_data
1221+
12161222

12171223
classProjectMilestone(SaveMixin,ObjectDeleteMixin,RESTObject):
12181224
_short_print_attr='title'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp