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

[TASK] Added change-merged hook for

parent 5744530b
require_once dirname(__FILE__) . '/../arguments.php';
$args = getArguments();
// do not disclose changes in foreign repositories!
if ($args['project'] !== 'Packages/TYPO3.CMS' && $args['project'] !== 'Teams/Security/TYPO3v4-Core') {
echo 'Will not send anything for repositories except Packages/TYPO3.CMS and Teams/Security/TYPO3v4-Core';
$args['token'] = getenv('HOOK_TOKEN_gerritadaptercoreb13dev');
$url = '';
// open connection
$ch = curl_init();
// set the url, number of POST vars, POST data
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args));
// execute post
$result = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
// close connection
Supports Markdown
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