Filter non github requests

This commit is contained in:
Dennis Eichhorn 2018-03-30 12:13:15 +02:00
parent 8620d322e2
commit 0999d6351c

View File

@ -1,3 +1,8 @@
<?php
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');
$postBody = $_POST['payload'];
$payload = json_decode($postBody, true);
if ($payload['repository']['name'] === 'Orange-Management') {
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');
}