From 07f1413d5ec08c4964d7e806a75cfd79375b40a7 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 23 Jun 2024 23:29:36 +0200 Subject: [PATCH] fix(changelog): Fix changelog generation by properly stripping markdown code fences --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/aidocs_classes/commit.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 4d16c73..e544119 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2024-06-23 - 1.3.8 - fix(changelog) +Fix changelog generation by properly stripping markdown code fences + +- Corrected the changelog generation code to ensure markdown code fences are properly stripped. + + ## 2024-06-23 - 1.3.7 - fix(aidoc) Update to include package-lock.json in uncommitted changes check diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b032de2..80c80c2 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsdoc', - version: '1.3.7', + version: '1.3.8', description: 'An advanced TypeScript documentation tool using AI to generate and enhance documentation for TypeScript projects.' } diff --git a/ts/aidocs_classes/commit.ts b/ts/aidocs_classes/commit.ts index 7a6f95d..1334c54 100644 --- a/ts/aidocs_classes/commit.ts +++ b/ts/aidocs_classes/commit.ts @@ -110,7 +110,7 @@ ${JSON.stringify(commitMessages, null, 2)} previousChangelog = await plugins.smartfile.SmartFile.fromString( previousChangelogPath, - result2.message, + result2.message.replace('```markdown', '').replace('```', ''), 'utf8' ); }