From 9f506eb83aef1a3b1975b04a7e55cc79ce8094c5 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 16 May 2024 17:22:32 +0200 Subject: [PATCH] fix: commit message length --- app/Jobs/ApplicationDeploymentJob.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index e542a67b4..9270b648a 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -1179,12 +1179,11 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted ] ); if ($this->saved_outputs->get('commit_message')) { - $commit_message = str($this->saved_outputs->get('commit_message'))->limit(50); + $commit_message = str($this->saved_outputs->get('commit_message'))->limit(47); $this->application_deployment_queue->commit_message = $commit_message->value(); ApplicationDeploymentQueue::whereCommit($this->commit)->whereApplicationId($this->application->id)->update( ['commit_message' => $commit_message->value()] ); - $this->application_deployment_queue->save(); } }