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

[TASK] Remove unused hook for docs.typo3.org

parent 2af42b15
#!/usr/bin/php
<?php
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/';
exit;
}
// add some constants
$args['sender'] = $_SERVER['argv'][0];
$args['repositoryUrl'] = 'git://git.typo3.org/';
$destinationUrl = 'https://docs.typo3.org/php/git-typo3-org-change-merged.php';
// 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);
curl_close($ch);
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