lib/Github/Api/PullRequest/Comments.php
public function all($username, $repository, $pullRequest = null, array $params = [])
    {
        if (null !== $pullRequest) {
            return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($pullRequest).'/comments');
        }

        $parameters = array_merge([
            'page' => 1,
            'per_page' => 30,
        ], $params);

        return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/comments', $parameters);
    }
public function all($username, $repository, $pullRequest = null, array $params = [])
    {
        if (null !== $pullRequest) {
            return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/'.rawurlencode($pullRequest).'/comments');
        }

        $parameters = array_merge([
            'page' => 1,
            'per_page' => 30,
        ], $params);

        return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/pulls/comments', $parameters);
    }
public function all ( $ username , $ repository , $ pullRequest = null , array $ params = [ ] ) { if ( null !== $ pullRequest ) { return $ this -> get ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/pulls/' . rawurlencode ( $ pullRequest ) . '/comments' ) ; } $ parameters = array_merge ( [ 'page' => 1 , 'per_page' => 30 , ] , $ params ) ; return $ this -> get ( '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/pulls/comments' , $ parameters ) ; }
Get a listing of a pull request's comments by the username, repository and pull request number
or all repository comments by the username and repository.

@link https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request
@link https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository

@param string   $username    the username
@param string   $repository  the repository
@param int|null $pullRequest the pull request number
@param array    $params      a list of extra parameters.

@return array
Get a listing of a pull request s comments by the username repository and pull request number or all repository comments by the username and repository .