Example #1
0
 /**
  * Get repository status for Repo
  * 
  * @param Entity\Bundle $repo
  * @return array
  */
 protected function getTravisDataForRepo(Entity\Bundle $repo)
 {
     return $this->getTravisData($repo->getUsername() . "/" . $repo->getName());
 }
Example #2
0
 public function getContributorNames(Entity\Bundle $bundle)
 {
     try {
         $contributors = $this->github->getRepoApi()->getRepoContributors($bundle->getUsername(), $bundle->getName());
     } catch (\Github_HttpClient_Exception $e) {
         if (404 == $e->getCode()) {
             return array();
         }
         throw $e;
     }
     $names = array();
     foreach ($contributors as $contributor) {
         if ($bundle->getUsername() != $contributor['login']) {
             $names[] = $contributor['login'];
         }
     }
     return $names;
 }
Example #3
0
 public function getRepoDir(BundleEntity $repo)
 {
     return $this->dir . '/' . $repo->getUsername() . '/' . $repo->getName();
 }