Fixing Github postbacks.

This commit is contained in:
Dan Cryer 2013-10-10 01:30:40 +01:00
parent 5213a00a3a
commit 13dbcc4260

View file

@ -67,19 +67,16 @@ class GithubBuild extends RemoteGitBuild
break;
}
$url = \b8\Config::getInstance()->get('phpci.url');
$phpciUrl = \b8\Config::getInstance()->get('phpci.url');
$params = array( 'state' => $status,
'target_url' => $url . '/build/view/' . $this->getId());
'target_url' => $phpciUrl . '/build/view/' . $this->getId());
$headers = array(
'Authorization: token ' . $project->getToken(),
'Content-Type: application/x-www-form-urlencoded'
);
$http->setHeaders($headers);
$res = $http->request('POST', $url, json_encode($params));
var_dump($res);
$http->request('POST', $url, json_encode($params));
}
/**