[MIRROR] Skip first whitespace only lines in changelog PR parser (#3051)

* Skip first whitespace only lines (#56534)

Parser won't crash on first empty lines anymore.

* Skip first whitespace only lines in changelog PR parser

Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-03 23:32:56 +01:00
committed by GitHub
parent 69b58e1432
commit cd2cf79c55

View File

@@ -745,6 +745,8 @@ function checkchangelog($payload, $compile = true) {
}
if (!strlen($firstword)) {
if (count($currentchangelogblock) <= 0)
continue;
$currentchangelogblock[count($currentchangelogblock)-1]['body'] .= "\n";
continue;
}