fix: gitlab merge request should close PR

This commit is contained in:
Andras Bacsai 2024-06-10 10:42:52 +02:00
parent d1128c7a1e
commit c80434141d

View File

@ -202,7 +202,7 @@ public function manual(Request $request)
]);
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();