Fixed GitHub status API and access to the pull requests of private projects

This commit is contained in:
StudioMaX 2017-06-02 02:20:29 +06:00
commit 0eba8c2cfe
3 changed files with 17 additions and 7 deletions

View file

@ -114,7 +114,11 @@ class RemoteGitBuild extends Build
$success = $builder->executeCommand($cmd, $this->getBranch(), $this->getCloneUrl(), $cloneTo);
if ($success) {
$success = $this->postCloneSetup($builder, $cloneTo);
$extra = [
'git_ssh_wrapper' => $gitSshWrapper
];
$success = $this->postCloneSetup($builder, $cloneTo, $extra);
}
// Remove the key file and git wrapper:
@ -128,9 +132,10 @@ class RemoteGitBuild extends Build
* Handle any post-clone tasks, like switching branches.
* @param Builder $builder
* @param $cloneTo
* @param array $extra
* @return bool
*/
protected function postCloneSetup(Builder $builder, $cloneTo)
protected function postCloneSetup(Builder $builder, $cloneTo, array $extra = null)
{
$success = true;
$commit = $this->getCommitId();