From a949039192dc6efd11d9c75ab09505470d888ccc Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 23 Jun 2024 16:45:20 +0200 Subject: [PATCH] feat(aidocs_classes): Enhance changelog generation by supporting complete generation in the absence of previous changelog files --- changelog.md | 4 ++-- ts/00_commitinfo_data.ts | 2 +- ts/aidocs_classes/commit.ts | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 24fc9cf..d88315d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,4 @@ # Changelog -## 1.1.41 -- fix(aidoc_classes): Improve commit message generation by handling empty diffs and updating changelog instructions \ No newline at end of file +## 1.2.0 +feat(aidocs_classes): Enhance changelog generation by supporting complete generation in the absence of previous changelog files \ No newline at end of file diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 9a49a37..e0f110d 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.1.42', + version: '1.2.0', 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 e84bc2a..53ee5f9 100644 --- a/ts/aidocs_classes/commit.ts +++ b/ts/aidocs_classes/commit.ts @@ -90,6 +90,7 @@ Only return the changelog file, so it can be written directly to changelog.md For the latest version, that is not yet part of the commit messages, add a placeholder entry that uses {{nextVersion}} and {{nextVersionMessage}} as variables to filled later. Only output newer versions and their changes compared to ones already mentioned. We take of appending your output later. +If there is no previous changelog file, generate a complete changelog from commit messages with heading and everything + the placeholder section mentioned above. `, userMessage: ` The previous changelog file is: