Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Fix action condition in merge_request webhook handler

Andras Bacsai68b25523d6a4
diff --git a/routes/webhooks.php b/routes/webhooks.php
index ba4c5b1b59..21dffee801 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();