From 478ec212e883421cf0a9bbb1f70cc62886080c65 Mon Sep 17 00:00:00 2001 From: Stephan Maximilian Huber Date: Mon, 2 Mar 2020 16:27:17 +0100 Subject: [PATCH] Limit commit msg size --- src/Method/ArtifactsGitMethod.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Method/ArtifactsGitMethod.php b/src/Method/ArtifactsGitMethod.php index ca3552d2..475bbe18 100644 --- a/src/Method/ArtifactsGitMethod.php +++ b/src/Method/ArtifactsGitMethod.php @@ -269,6 +269,9 @@ protected function pushToTargetRepository(HostConfig $host_config, TaskContextIn $formatted_message = $message; // Add two new lines to the end of the short message for detailed messages. if (!empty($detailed_messages)) { + if (count($detailed_messages) > 20) { + array_slice($detailed_messages, 0, 20); + } $formatted_message .= "\n\n * " . implode("\n * ", $detailed_messages); }