From c80434141dc6b2d011e8ae920cfccf254d0651b9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 10 Jun 2024 10:42:52 +0200 Subject: [PATCH] fix: gitlab merge request should close PR --- app/Http/Controllers/Webhook/Gitlab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Webhook/Gitlab.php b/app/Http/Controllers/Webhook/Gitlab.php index a36929781..cd1e58bcd 100644 --- a/app/Http/Controllers/Webhook/Gitlab.php +++ b/app/Http/Controllers/Webhook/Gitlab.php @@ -202,7 +202,7 @@ class Gitlab extends Controller ]); ray('Preview deployments disabled for ' . $application->name); } - } else if ($action === 'closed' || $action === 'close') { + } else if ($action === 'closed' || $action === 'close' || $action === 'merge') { $found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first(); if ($found) { $found->delete();