chore: Limit commit message length to 50 characters in ApplicationDeploymentJob
This commit is contained in:
parent
fbf64f8037
commit
6847459022
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user