Skip to content

Commit c804341

Browse files
committed
fix: gitlab merge request should close PR
1 parent d1128c7 commit c804341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Webhook/Gitlab.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function manual(Request $request)
202202
]);
203203
ray('Preview deployments disabled for ' . $application->name);
204204
}
205-
} else if ($action === 'closed' || $action === 'close') {
205+
} else if ($action === 'closed' || $action === 'close' || $action === 'merge') {
206206
$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
207207
if ($found) {
208208
$found->delete();

0 commit comments

Comments
 (0)