Refines commit message prompt directive

Updated the guidelines for generating commit messages to avoid using the word 'enhance' and user experience references, and request plain text responses without syntax.
This commit is contained in:
Jeremy Dormitzer 2024-07-24 10:42:04 -04:00
parent 77138e6dc9
commit 05d94e2646

View File

@ -61,7 +61,7 @@
(goto-char (point-max))
(forward-line -1)
(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. 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. Reply in plain text with no Markdown or other syntax. Reply with the commit message only." diff)))
(message "Generating commit message...")
(gptel-request prompt
:stream t