Refine commit message prompt to be more specific

Updated the prompt text to include "Be specific" to improve clarity and detail in generated commit messages.
This commit is contained in:
Jeremy Dormitzer 2024-08-12 16:31:54 -04:00
parent 6b4430b854
commit 4d022e32d2

View File

@ -241,7 +241,7 @@ Assistant: Write a short story about a dragon who discovers a hidden talent that
(goto-char (point-max)) (goto-char (point-max))
(forward-line -1) (forward-line -1)
(point))))) (point)))))
(prompt (format "%s\n\nWrite a clear, concise commit message for this diff. The first line should succinctly summarize the changes made and should be no more than 50 characters. If additional context is needed, include it in an additional paragraph separate by a blank line from the first line. Do not use the word 'enhance' or talk about the user experience. Reply in plain text with no Markdown or other syntax. Reply with the commit message only." diff))) (prompt (format "%s\n\nWrite a clear, concise commit message for this diff. The first line should succinctly summarize the changes made and should be no more than 50 characters. If additional context is needed, include it in an additional paragraph separate by a blank line from the first line. Do not use the word 'enhance' or talk about the user experience. Be specific. Reply in plain text with no Markdown or other syntax. Reply with the commit message only." diff)))
(message "Generating commit message...") (message "Generating commit message...")
(gptel-request prompt (gptel-request prompt
:stream t :stream t