Skip to content

Commit db8b403

Browse files
authored
Added support for milestone filter
As per the latest docs, a milestone title can be passed as an argument to filter the issues by that milestone (http://docs.gitlab.com/ee/api/issues.html#list-project-issues) This adds a milestone key to the array of allowed params.
1 parent d23c5f8 commit db8b403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Gitlab/Api/Issues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function all($project_id = null, $page = 1, $per_page = self::PER_PAGE, a
1313
{
1414
$path = $project_id === null ? 'issues' : $this->getProjectPath($project_id, 'issues');
1515

16-
$params = array_intersect_key($params, array('labels' => '', 'state' => '', 'sort' => '', 'order_by' => ''));
16+
$params = array_intersect_key($params, array('labels' => '', 'state' => '', 'sort' => '', 'order_by' => '', 'milestone' => ''));
1717
$params = array_merge(array(
1818
'page' => $page,
1919
'per_page' => $per_page

0 commit comments

Comments
 (0)