fix(mod_commit): Fix variable reassignment issue in changelog writing step
This commit is contained in:
parent
7e0a00324b
commit
53eb47672c
25
changelog.md
Normal file
25
changelog.md
Normal file
@ -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
|
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* autocreated commitinfo by @pushrocks/commitinfo
|
* autocreated commitinfo by @push.rocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/cli',
|
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.'
|
description: 'A CLI toolbelt to streamline local development cycles by using various gitzone utilities.'
|
||||||
}
|
}
|
||||||
|
@ -70,9 +70,9 @@ export const run = async (argvArg: any) => {
|
|||||||
await commitInfo.writeIntoPotentialDirs();
|
await commitInfo.writeIntoPotentialDirs();
|
||||||
|
|
||||||
logger.log('info', `Writing changelog.md ...`);
|
logger.log('info', `Writing changelog.md ...`);
|
||||||
const changelog = nextCommitObject.changelog;
|
let changelog = nextCommitObject.changelog;
|
||||||
changelog.replaceAll('{{nextVersion}}', (await commitInfo.getNextPlannedVersion()).versionString);
|
changelog = changelog.replaceAll('{{nextVersion}}', (await commitInfo.getNextPlannedVersion()).versionString);
|
||||||
changelog.replaceAll('{{nextVersionMessage}}', commitString);
|
changelog = changelog.replaceAll('{{nextVersionMessage}}', commitString);
|
||||||
|
|
||||||
await plugins.smartfile.memory.toFs(changelog, plugins.path.join(paths.cwd, `changelog.md`));
|
await plugins.smartfile.memory.toFs(changelog, plugins.path.join(paths.cwd, `changelog.md`));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user