From 5252a085c3237a2d2e3f6340c8cfd09524114ccd Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 13 Jun 2023 11:45:33 +0200 Subject: [PATCH] fix --- routes/webhooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/webhooks.php b/routes/webhooks.php index 14244b69a..e0982d4c7 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -127,7 +127,7 @@ } } if ($x_github_event === 'pull_request') { - if ($action === 'opened') { + if ($action === 'opened' || $action === 'synchronize' || $action === 'reopened') { if ($application->isPRDeployable()) { $deployment_uuid = new Cuid2(7); $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first(); @@ -161,7 +161,7 @@ remote_process(["docker rm -f $container_name"], $application->destination->server); return response('Preview Deployment closed.'); } - return response('Nothing to do. No Preview Deplyoment found'); + return response('Nothing to do. No Preview Deployment found'); } } }