From fd5647ab8490adadd43cc8ea13345f55c20fe0d0 Mon Sep 17 00:00:00 2001 From: tak Date: Sun, 21 Apr 2024 20:18:49 +0900 Subject: [PATCH] chore: update prompt to include commit type --- package.json | 2 +- src/utils/prompt.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1990d49..88eb0d1 100644 --- a/package.json +++ b/package.json @@ -189,7 +189,7 @@ [ "@semantic-release/git", { - "assets": ["package.json", "CHANGELOG.md"], + "assets": ["CHANGELOG.md"], "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}" } ], diff --git a/src/utils/prompt.ts b/src/utils/prompt.ts index b313bd3..b4301f3 100644 --- a/src/utils/prompt.ts +++ b/src/utils/prompt.ts @@ -43,7 +43,8 @@ export const generatePrompt = (locale: string, maxLength: number, type: CommitTy 'Generate a concise git commit message written in present tense for the following code diff with the given specifications below:', `Message language: ${locale}`, `Commit message must be a maximum of ${maxLength} characters.`, - 'Please exclude anything unnecessary such as translation or explanation. Your entire response will be passed directly into git commit.', + 'Please exclude anything unnecessary such as translation or explanation.', + 'Your entire response will be passed directly into git commit.', commitTypes[type], specifyCommitFormat(type), prompt,