From cefb425492823066244b373ed173a8a4bfca1881 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 10 Nov 2025 14:58:08 +0100 Subject: [PATCH] Update app/Livewire/Project/Application/Heading.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/Livewire/Project/Application/Heading.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.php index 2c20926a3..7aa8041a4 100644 --- a/app/Livewire/Project/Application/Heading.php +++ b/app/Livewire/Project/Application/Heading.php @@ -94,8 +94,19 @@ public function deploy(bool $force_rebuild = false) return; } + $this->setDeploymentUuid(); + $result = queue_application_deployment( + application: $this->application, + deployment_uuid: $this->deploymentUuid, + force_rebuild: $force_rebuild, + ); + if ($result['status'] === 'skipped') { + $this->dispatch('success', 'Deployment skipped', $result['message']); - // Reset restart count on deployment + return; + } + + // Reset restart count on successful deployment $this->application->update([ 'restart_count' => 0, 'last_restart_at' => null,