@@ -1059,16 +1059,9 @@ def builds(self, **kwargs):
1059
1059
"""
1060
1060
url = '/projects/%s/repository/commits/%s/builds' % (self .project_id ,
1061
1061
self .id )
1062
- r = self .gitlab ._raw_get (url , ** kwargs )
1063
- raise_error_from_response (r , GitlabListError )
1064
-
1065
- l = []
1066
- for j in r .json ():
1067
- o = ProjectBuild (self , j )
1068
- o ._from_api = True
1069
- l .append (o )
1070
-
1071
- return l
1062
+ return self .gitlab ._raw_list (url , ProjectBuild ,
1063
+ {'project_id' : self .project_id },
1064
+ ** kwargs )
1072
1065
1073
1066
1074
1067
class ProjectCommitManager (BaseManager ):
@@ -1413,7 +1406,9 @@ def closes_issues(self, **kwargs):
1413
1406
"""
1414
1407
url = ('/projects/%s/merge_requests/%s/closes_issues' %
1415
1408
(self .project_id , self .id ))
1416
- return self .gitlab ._raw_list (url , ProjectIssue , ** kwargs )
1409
+ return self .gitlab ._raw_list (url , ProjectIssue ,
1410
+ {'project_id' : self .project_id },
1411
+ ** kwargs )
1417
1412
1418
1413
def commits (self , ** kwargs ):
1419
1414
"""List the merge request commits.
@@ -1427,7 +1422,9 @@ def commits(self, **kwargs):
1427
1422
"""
1428
1423
url = ('/projects/%s/merge_requests/%s/commits' %
1429
1424
(self .project_id , self .id ))
1430
- return self .gitlab ._raw_list (url , ProjectCommit , ** kwargs )
1425
+ return self .gitlab ._raw_list (url , ProjectCommit ,
1426
+ {'project_id' : self .project_id },
1427
+ ** kwargs )
1431
1428
1432
1429
def changes (self , ** kwargs ):
1433
1430
"""List the merge request changes.
@@ -1497,18 +1494,11 @@ class ProjectMilestone(GitlabObject):
1497
1494
optionalUpdateAttrs = requiredCreateAttrs + optionalCreateAttrs
1498
1495
shortPrintAttr = 'title'
1499
1496
1500
- def issues (self ):
1497
+ def issues (self , ** kwargs ):
1501
1498
url = "/projects/%s/milestones/%s/issues" % (self .project_id , self .id )
1502
- r = self .gitlab ._raw_get (url )
1503
- raise_error_from_response (r , GitlabDeleteError )
1504
-
1505
- l = []
1506
- for j in r .json ():
1507
- o = ProjectIssue (self , j )
1508
- o ._from_api = True
1509
- l .append (o )
1510
-
1511
- return l
1499
+ return self .gitlab ._raw_list (url , ProjectIssue ,
1500
+ {'project_id' : self .project_id },
1501
+ ** kwargs )
1512
1502
1513
1503
1514
1504
class ProjectMilestoneManager (BaseManager ):
0 commit comments