Skip to content

Commit 6dfdb78

Browse files
committed
Merge pull request #154 from klaude/get_all_milestones
Add support to get all milestones.
2 parents b6f7f21 + 96af37a commit 6dfdb78

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)