mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +00:00
[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:
@@ -745,6 +745,8 @@ function checkchangelog($payload, $compile = true) {
|
||||
}
|
||||
|
||||
if (!strlen($firstword)) {
|
||||
if (count($currentchangelogblock) <= 0)
|
||||
continue;
|
||||
$currentchangelogblock[count($currentchangelogblock)-1]['body'] .= "\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user