From a4017bd84d30be45cf87b57bf2d7a7f774519b0a Mon Sep 17 00:00:00 2001 From: billybonks Date: Thu, 20 Mar 2025 14:25:31 +0800 Subject: [PATCH] feat: improve the prompt based on last evaluation run --- .../defaults/commit_message_only.prompt | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/lib/committer/config/defaults/commit_message_only.prompt b/lib/committer/config/defaults/commit_message_only.prompt index d28bc8c..a0d6667 100644 --- a/lib/committer/config/defaults/commit_message_only.prompt +++ b/lib/committer/config/defaults/commit_message_only.prompt @@ -12,17 +12,6 @@ Here are the available scopes (if any): {{SCOPES}} -Please follow these instructions to generate the commit message: - -1. Analyze the git diff and determine the most appropriate commit type from the following options: - - feat: A new feature - - fix: A bug fix - - docs: Documentation only changes - - style: Changes that do not affect the meaning of the code - - refactor: A code change that neither fixes a bug nor adds a feature - - perf: A code change that improves performance - - test: Adding missing tests or correcting existing tests - - chore: Changes to the build process or auxiliary tools and libraries 2. Adhere to these message guidelines: @@ -35,4 +24,26 @@ Please follow these instructions to generate the commit message: - If a scope is available: (): - If no scope is available: : + +Please follow these instructions to generate the commit message: + +if such and such changes its docs b ut if commit also has such then its a feat + +1. Analyze the git diff and determine the most appropriate commit type from the following options: + - feat: A new feature these changes ARE NOT in the docs directory + - fix: A bug fix these changes ARE NOT in the docs directory + - docs: Documentation only changes for example changes that happen in docs directory + - style: Changes that do not affect the code execution (e.g., white-space, formatting, missing semi-colons, etc.) usually done by linters + - refactor: + - A code change that does not change the behaviour of the code at all, just how the code is written executed, + - modifing error messages is not a refactor + - if parts of the code is removed and no alternative in place IT IS NOT A REFACTOR + - perf: A code change that improves performance + - test: Adding missing tests or correcting existing tests + - build: Changes that affect the build system or external dependencies + - ci: + - Changes to the CI configuration files and scripts + - these changes should not change the way that the code is built otherwise its build + + Respond ONLY with the commit message line, nothing else. \ No newline at end of file