/**
  * @param RepositoryInformation $repoInfo
  * @return null|array
  */
 protected function getIssueFromGithub(RepositoryInformation $repoInfo)
 {
     $issue = null;
     try {
         /** @var  $issue */
         $issue = $this->githubClient->issues()->show($this->getGithubUserName(), $repoInfo->getRepositoryName(), $repoInfo->getIssueId());
     } catch (\Github\Exception\RuntimeException $runtimeException) {
         // dont care
     }
     return $issue;
 }
 /**
  * @param RepositoryInformation $repositoryInfo
  * @return string
  */
 private function getIssueBadge(RepositoryInformation $repositoryInfo)
 {
     // TODO: make colors configurable
     switch ($repositoryInfo->getRepositoryName()) {
         case 'frontend':
             $color = 'yellow';
             break;
         case 'api':
             $color = 'orange';
             break;
         default:
             $color = 'blue';
     }
     return sprintf('<a target=_blank href="https://github.com/%s/%s/issues/%s"><img src="http://img.shields.io/badge/%s-%s-%s.svg" /></a> ', $repositoryInfo->getRepositoryNamespace(), $repositoryInfo->getRepositoryName(), $repositoryInfo->getIssueId(), $repositoryInfo->getRepositoryName(), $repositoryInfo->getIssueId(), $color);
 }