From 53eb47672c24ca2a0a30d972a484fb9a8c48c93d Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 23 Jun 2024 13:35:28 +0200 Subject: [PATCH] fix(mod_commit): Fix variable reassignment issue in changelog writing step --- changelog.md | 25 +++++++++++++++++++++++++ ts/00_commitinfo_data.ts | 4 ++-- ts/mod_commit/index.ts | 6 +++--- 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 changelog.md diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..6150823 --- /dev/null +++ b/changelog.md @@ -0,0 +1,25 @@ +# Changelog + +## {{nextVersion}} - {{nextVersionMessage}} + +- Fix: General core updates + +## 1.9.99 + +- Fix: General core updates + +## 1.9.98 + +- Fix: General core updates + +## 1.9.97 + +- Fix: General core updates + +## 1.9.96 + +- Fix: General core updates + +## 1.9.95 + +- Fix: General core updates \ No newline at end of file diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a91db26..603d416 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -1,8 +1,8 @@ /** - * autocreated commitinfo by @pushrocks/commitinfo + * autocreated commitinfo by @push.rocks/commitinfo */ export const commitinfo = { name: '@git.zone/cli', - version: '1.9.99', + version: '1.9.100', description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.' } diff --git a/ts/mod_commit/index.ts b/ts/mod_commit/index.ts index c2ac628..6bb8d87 100644 --- a/ts/mod_commit/index.ts +++ b/ts/mod_commit/index.ts @@ -70,9 +70,9 @@ export const run = async (argvArg: any) => { await commitInfo.writeIntoPotentialDirs(); logger.log('info', `Writing changelog.md ...`); - const changelog = nextCommitObject.changelog; - changelog.replaceAll('{{nextVersion}}', (await commitInfo.getNextPlannedVersion()).versionString); - changelog.replaceAll('{{nextVersionMessage}}', commitString); + let changelog = nextCommitObject.changelog; + changelog = changelog.replaceAll('{{nextVersion}}', (await commitInfo.getNextPlannedVersion()).versionString); + changelog = changelog.replaceAll('{{nextVersionMessage}}', commitString); await plugins.smartfile.memory.toFs(changelog, plugins.path.join(paths.cwd, `changelog.md`));