Skip to content

Commit 96af37a

Browse files
committed
Add support to get all milestones.
The GitHub API allows you to retrieve open, closed, or all milestones. Add support to retrieve all milestones in addition to just the open or the closed ones.
1 parent b6f7f21 commit 96af37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/Issue/Milestones.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Milestones extends AbstractApi
1313
{
1414
public function all($username, $repository, array $params = array())
1515
{
16-
if (isset($params['state']) && !in_array($params['state'], array('open', 'closed'))) {
16+
if (isset($params['state']) && !in_array($params['state'], array('open', 'closed', 'all'))) {
1717
$params['state'] = 'open';
1818
}
1919
if (isset($params['sort']) && !in_array($params['sort'], array('due_date', 'completeness'))) {

0 commit comments

Comments
 (0)