mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-23 04:52:58 +00:00
Prepare concise 1.0 beta notes and fix release rotation
This commit is contained in:
@@ -86,7 +86,8 @@ function prepare(version) {
|
||||
}
|
||||
|
||||
// Keep a fresh empty Unreleased section above the newly dated release notes.
|
||||
const releasedBody = `${unreleased.body.trim()}\n\n`;
|
||||
const releaseSuffix = unreleased.end < markdown.length ? "\n\n" : "\n";
|
||||
const releasedBody = `${unreleased.body.trim()}${releaseSuffix}`;
|
||||
const releaseDate = process.env.RELEASE_DATE || formatReleaseDate();
|
||||
const replacement = `## Unreleased\n\n## ${version}\n\n${releaseDate}\n\n${releasedBody}`;
|
||||
const nextMarkdown = markdown.slice(0, unreleased.headingStart) + replacement + markdown.slice(unreleased.end);
|
||||
|
||||
Reference in New Issue
Block a user