Skip to content

Commit dcbc960

Browse files
committed
remove getList method for MergeRequests api
1 parent c267c41 commit dcbc960

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ See [documentation](doc/customize.md) to know how to customize the client timeou
2323
* The second argument of `update`, `remove`, `showComments`, `showComment`, `addComment`, `updateComment`, `removeComment`,
2424
`setTimeEstimate`, `resetTimeEstimate`, `addSpentTime` and `resetSpentTime` methods is now a scoped issue id (iid).
2525

26+
## `Gitlab\Api\MergeRequests` changes
27+
28+
* The `getList` method have been removed. Use `all` instead.
29+
2630
## `Gitlab\Api\Projects` changes
2731

2832
* The `keys`, `key`, `addKey`, `removeKey`, `disableKey` and `enableKey` methods have been removed.

lib/Gitlab/Api/MergeRequests.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,6 @@ class MergeRequests extends AbstractApi
1010
const ORDER_BY = 'created_at';
1111
const SORT = 'asc';
1212

13-
/**
14-
* @param int $project_id
15-
* @param string $state
16-
* @param int $page
17-
* @param int $per_page
18-
* @param string $order_by
19-
* @param string $sort
20-
* @param string $object
21-
* @return mixed
22-
*/
23-
public function getList($project_id, $state = self::STATE_ALL, $page = 1, $per_page = self::PER_PAGE, $order_by = self::ORDER_BY, $sort = self::SORT, $object = 'merge_requests')
24-
{
25-
return $this->get($this->getProjectPath($project_id, $object), array(
26-
'page' => $page,
27-
'per_page' => $per_page,
28-
'state' => $state,
29-
'order_by' => $order_by,
30-
'sort' => $sort
31-
));
32-
}
33-
3413
/**
3514
* @param int $project_id
3615
* @param int $page

0 commit comments

Comments
 (0)