fix: gitlab merge request should close PR
This commit is contained in:
parent
d1128c7a1e
commit
c80434141d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user