Пример #1
0
 private function getRepository()
 {
     $repository = $this->repositoryStack->getCurrentRepository();
     if ($repository === null) {
         throw new \RuntimeException('No current repository.');
     }
     return $repository;
 }
Пример #2
0
 public function getNeedsReviewUrl()
 {
     $repository = $this->repositoryStack->getCurrentRepository();
     if ($repository === null) {
         throw new \RuntimeException('No current repository.');
     }
     return sprintf('https://github.com/%s/%s/labels/%s', $repository->getOwner(), $repository->getName(), rawurlencode($this->statusToLabel[Status::NEEDS_REVIEW]));
 }