chore: Limit commit message length to 50 characters in ApplicationDeploymentJob

This commit is contained in:
Andras Bacsai 2024-05-16 13:33:35 +02:00
parent fbf64f8037
commit 6847459022

View File

@ -1179,8 +1179,11 @@ private function clone_repository()
]
);
if ($this->saved_outputs->get('commit_message')) {
$this->application_deployment_queue->commit_message = $this->saved_outputs->get('commit_message');
ApplicationDeploymentQueue::whereCommit($this->commit)->whereApplicationId($this->application->id)->update(['commit_message' => $this->saved_outputs->get('commit_message')]);
$commit_message = str($this->saved_outputs->get('commit_message'))->limit(50);
$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();
}
}