Ejemplo n.º 1
0
 /**
  * @param $name
  *
  * @return GithubPullRequest
  */
 private function createPullRequestObjectFromPullRequestName($name)
 {
     $pullRequest = new GithubPullRequest();
     $pullRequest->setName($name);
     return $pullRequest;
 }
Ejemplo n.º 2
0
 /**
  * @Given there is :pullRequestName pullRequest on :githubRepoFullName github repo
  *
  * @param $pullRequestName
  * @param $githubRepoFullName
  *
  * @throws \Exception
  */
 public function thereIsPullRequestOnGithubRepo($pullRequestName, $githubRepoFullName)
 {
     $pullRequest = new GithubPullRequest();
     $pullRequest->setName($pullRequestName)->setRepo($this->getGithubRepoByFullName($githubRepoFullName));
     $this->save($pullRequest);
 }