if (!
$dryRun) { $this->filesystem->
mkdir($releaseDir);
$output[] = '* Move the unreleased changelog files to release folder: ' .
$releaseDir;
} else { $output[] = '---';
$output[] = 'Move the unreleased changelog files to release folder: ' .
$releaseDir;
$output[] = '---';
} foreach ($collection as $changelog) { if (!
$dryRun) { $this->filesystem->
rename($this->
getUnreleasedDir() . '/' .
$changelog->
getName(),
$releaseDir . '/' .
$changelog->
getName());
} else { $output[] = '* ' .
$changelog->
getName();
} } return $output;
} /**
* Update the CHANGELOG.md global file
*
* @param list<string> $output
*
* @return list<string>
*/