Fixed GitHub status API and access to the pull requests of private projects
This commit is contained in:
parent
af156ada5b
commit
0eba8c2cfe
3 changed files with 17 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue