protected function outputGitHubIssues()
    {
        $issues = $this
            ->taskGitHubIssueList(
                $this->getToken(),
                $this->getAccount(),
                $this->getRepository()
            )
            ->run();

        unset($issues['time']);

        $table = (new Table($this->output))
            ->setHeaders(['Issue', 'Title', 'State', 'Assignee', 'Labels', 'Author']);

        $rows = [];
        foreach ($issues as $issue) {
            $labels = isset($issue['labels'])
                ? $this->formatLabelNames($issue['labels'])
                : null;

            $assignee = isset($issue['assignee']['login'])
                ? $issue['assignee']['login']
                : 'none';

            $rows[] = [
                $issue['number'],
                $issue['title'],
                $issue['state'],
                $assignee,
                $labels,
                $issue['user']['login'],
            ];
        }
        $table->setRows($rows);
        $table->render();

        return $this;
    }
protected function outputGitHubIssues()
    {
        $issues = $this
            ->taskGitHubIssueList(
                $this->getToken(),
                $this->getAccount(),
                $this->getRepository()
            )
            ->run();

        unset($issues['time']);

        $table = (new Table($this->output))
            ->setHeaders(['Issue', 'Title', 'State', 'Assignee', 'Labels', 'Author']);

        $rows = [];
        foreach ($issues as $issue) {
            $labels = isset($issue['labels'])
                ? $this->formatLabelNames($issue['labels'])
                : null;

            $assignee = isset($issue['assignee']['login'])
                ? $issue['assignee']['login']
                : 'none';

            $rows[] = [
                $issue['number'],
                $issue['title'],
                $issue['state'],
                $assignee,
                $labels,
                $issue['user']['login'],
            ];
        }
        $table->setRows($rows);
        $table->render();

        return $this;
    }
protected function outputGitHubIssues ( ) { $ issues = $ this -> taskGitHubIssueList ( $ this -> getToken ( ) , $ this -> getAccount ( ) , $ this -> getRepository ( ) ) -> run ( ) ; unset ( $ issues [ 'time' ] ) ; $ table = ( new Table ( $ this -> output ) ) -> setHeaders ( [ 'Issue' , 'Title' , 'State' , 'Assignee' , 'Labels' , 'Author' ] ) ; $ rows = [ ] ; foreach ( $ issues as $ issue ) { $ labels = isset ( $ issue [ 'labels' ] ) ? $ this -> formatLabelNames ( $ issue [ 'labels' ] ) : null ; $ assignee = isset ( $ issue [ 'assignee' ] [ 'login' ] ) ? $ issue [ 'assignee' ] [ 'login' ] : 'none' ; $ rows [ ] = [ $ issue [ 'number' ] , $ issue [ 'title' ] , $ issue [ 'state' ] , $ assignee , $ labels , $ issue [ 'user' ] [ 'login' ] , ] ; } $ table -> setRows ( $ rows ) ; $ table -> render ( ) ; return $ this ; }
Output GitHub issue table.

@return self
Output GitHub issue table .