diff --git a/automated_packaging/common_functions.pm b/automated_packaging/common_functions.pm index 781f9fa9..0c96e0d7 100644 --- a/automated_packaging/common_functions.pm +++ b/automated_packaging/common_functions.pm @@ -150,11 +150,13 @@ sub create_release_changelog { foreach $line (@log_output) { if ($line =~ /^DESCRIPTION: */) { $description_part = substr($line, length($&), -1); + if (length($description_part) > 78) { - print("You have to shorten PR message $description_part of $pr_url"); - `git reset --hard`; - die "Can not add description longer than 78 charachters"; + print("You have to shorten PR message $description_part of $pr_url\n"); + print("Description should not be longer than 78 charachters, please manually shorten this description\n"); + push(@comment_lines, "TODO: " . "PLEASE SHORTEN THE NEXT LINE MANUALLY, IT SHOULD BE NO LONGER THAN 78 CHARS\n"); } + print("Description $description_part has been added ... \n"); push(@comment_lines, "* " . $description_part . "\n\n"); }