private function getRepository() { $repository = $this->repositoryStack->getCurrentRepository(); if ($repository === null) { throw new \RuntimeException('No current repository.'); } return $repository; }
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])); }