X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FCreate%2FWebhook.php;h=6f69d0c811ad2fe7ea73fac197b2ac55f0a98391;hb=34739d9ba328b1e9176800883eae0987f5f05337;hp=6e583fcd91c88428dd4439f7d6c3b803a20c3259;hpb=728020f863c8562d9c42e926b08ba1c7a390e53d;p=pharext%2Fpharext.org diff --git a/app/Github/Create/Webhook.php b/app/Github/Create/Webhook.php index 6e583fc..6f69d0c 100644 --- a/app/Github/Create/Webhook.php +++ b/app/Github/Create/Webhook.php @@ -15,13 +15,14 @@ class Webhook extends Create "Content-Type" => "application/json", "Authorization" => "token " . $this->api->getToken(), ]); + $request->getBody()->append(json_encode([ "name" => "web", "config" => [ "url" => $this->config->hook->url, "content_type" => $this->config->hook->content_type, + "insecure_ssl" => $this->config->hook->insecure_ssl, "secret" => $this->config->client->secret, // FIXME: bad idea? - "insecure_ssl" => false, ] ])); return $request;