From: Dan Brown Date: Mon, 4 Oct 2021 15:39:56 +0000 (+0100) Subject: Updated changelog script X-Git-Url: http://source.bookstackapp.com/devops/commitdiff_plain/4ffe766ec0deb9c9625a12e068bbb011f58db37d Updated changelog script Better aligns to version changes and recent release note convention --- diff --git a/meta-scripts/bookstack-changelog b/meta-scripts/bookstack-changelog index b4c318c..26576ec 100755 --- a/meta-scripts/bookstack-changelog +++ b/meta-scripts/bookstack-changelog @@ -52,21 +52,22 @@ $versionMatch = []; preg_match('/v[0-9.]{5,7}/', $milestone['title'], $versionMatch); $version = $versionMatch[0]; $splitVersion = explode('.', $version); -$isFeature = intval(array_pop($splitVersion)) === 0; +$isFeature = count($splitVersion) === 2; // Output title output("# BookStack {$version}\n"); // Output header text and links +output("### Links\n"); +output("- [Update instructions](https://www.bookstackapp.com/docs/admin/updates)"); if ($isFeature) { - $urlVersion = implode('0', $splitVersion); - output("- [Update instructions](https://www.bookstackapp.com/docs/admin/updates)"); + $urlVersion = implode('-', $splitVersion); output("- [Update details on blog](https://www.bookstackapp.com/blog/bookstack-release-{$urlVersion}/)"); - output("\n### Full List of Changes\n"); -} else { - output("\nThis release contains the following fixes and changes:\n"); } +output("\n### Full List of Changes\n"); +output("This release contains the following fixes and changes:\n"); + // Output issues foreach ($issues as $issue) { $output = '* ';