lib/Github/Api/Issue/Labels.php
public function all($username, $repository, $issue = null)
    {
        if ($issue === null) {
            $path = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/labels';
        } else {
            $path = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/issues/'.rawurlencode($issue).'/labels';
        }

        return $this->get($path);
    }
public function all($username, $repository, $issue = null)
    {
        if ($issue === null) {
            $path = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/labels';
        } else {
            $path = '/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/issues/'.rawurlencode($issue).'/labels';
        }

        return $this->get($path);
    }
public function all ( $ username , $ repository , $ issue = null ) { if ( $ issue === null ) { $ path = '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/labels' ; } else { $ path = '/repos/' . rawurlencode ( $ username ) . '/' . rawurlencode ( $ repository ) . '/issues/' . rawurlencode ( $ issue ) . '/labels' ; } return $ this -> get ( $ path ) ; }
Get all labels for a repository or the labels for a specific issue.

@link https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue

@param string   $username
@param string   $repository
@param int|null $issue

@return array
Get all labels for a repository or the labels for a specific issue .