/** * Get repository status for Repo * * @param Entity\Bundle $repo * @return array */ protected function getTravisDataForRepo(Entity\Bundle $repo) { return $this->getTravisData($repo->getUsername() . "/" . $repo->getName()); }
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; }
public function getRepoDir(BundleEntity $repo) { return $this->dir . '/' . $repo->getUsername() . '/' . $repo->getName(); }