fix: gitlab merge request should close PR
This commit is contained in:
parent
d1128c7a1e
commit
c80434141d
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ public function manual(Request $request)
|
||||||
]);
|
]);
|
||||||
ray('Preview deployments disabled for ' . $application->name);
|
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();
|
$found = ApplicationPreview::where('application_id', $application->id)->where('pull_request_id', $pull_request_id)->first();
|
||||||
if ($found) {
|
if ($found) {
|
||||||
$found->delete();
|
$found->delete();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue