Commit a4270a5c authored by Stephan Großberndt's avatar Stephan Großberndt
Browse files

[TASK] Remove unused hook for

parent 2af42b15
require_once dirname(__FILE__) . '/../arguments.php';
$args = getArguments();
// do not disclose changes in security repositories!
if (strstr($args['project'], 'Teams/Security/')) {
echo 'Will not send anything for repositories below Teams/Security/';
// add some constants
$args['sender'] = $_SERVER['argv'][0];
$args['repositoryUrl'] = 'git://';
$destinationUrl = '';
// let's post the data as json string
$postfields = ['json' => json_encode($args)];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $destinationUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$returnData = curl_exec($ch);
$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($http_status == 200) {
echo 'pass';
} else {
echo 'fail';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment