Skip to content

Commit

Permalink
fix: gitlab merge request should close PR
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Jun 10, 2024
1 parent d1128c7 commit c804341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Webhook/Gitlab.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c804341

Please sign in to comment.