lib/GitHub/Receiver/Issues/Milestones.php
public function listMilestones(string $state = AbstractApi::STATE_OPEN, string $sort = AbstractApi::SORT_DUE_DATE,
                                   string $direction = AbstractApi::DIRECTION_ASC): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/milestones?:args',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), http_build_query([
                'state'     => $state,
                'sort'      => $sort,
                'direction' => $direction
            ])));
    }
public function listMilestones(string $state = AbstractApi::STATE_OPEN, string $sort = AbstractApi::SORT_DUE_DATE,
                                   string $direction = AbstractApi::DIRECTION_ASC): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/milestones?:args',
            $this->getIssues()->getOwner(), $this->getIssues()->getRepo(), http_build_query([
                'state'     => $state,
                'sort'      => $sort,
                'direction' => $direction
            ])));
    }
public function listMilestones ( string $ state = AbstractApi :: STATE_OPEN , string $ sort = AbstractApi :: SORT_DUE_DATE , string $ direction = AbstractApi :: DIRECTION_ASC ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/milestones?:args' , $ this -> getIssues ( ) -> getOwner ( ) , $ this -> getIssues ( ) -> getRepo ( ) , http_build_query ( [ 'state' => $ state , 'sort' => $ sort , 'direction' => $ direction ] ) ) ) ; }
List milestones for a repository

@link https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository

@param string $state
@param string $sort
@param string $direction

@return array
List milestones for a repository