From 68b25523d6a4a11502c18edd591e0c85bf03b159 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 15 Jan 2024 14:27:45 +0100 Subject: [PATCH] Fix action condition in merge_request webhook handler --- routes/webhooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/webhooks.php b/routes/webhooks.php index ba4c5b1b5..21dffee80 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -163,7 +163,7 @@ Route::post('/source/gitlab/events/manual', function () { } } if ($x_gitlab_event === 'merge_request') { - if ($action === 'opened' || $action === 'synchronize' || $action === 'reopened' || $action === 'reopen' || $action === 'update') { + if ($action === 'open' ||$action === 'opened' || $action === 'synchronize' || $action === 'reopened' || $action === 'reopen' || $action === 'update') { if ($application->isPRDeployable()) { $deployment_uuid = new Cuid2(7); $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();