Hi, I would love to use AI on my commit messages to automatically summarize the latest changes
3 Likes
You can do this by using the @git context provider in cursor’s chat or edit components!
e.g.,
( use whatever prompt you want to direct it more to your liking, of course )
5 Likes
For my future reference, here is the prompt posted:
“Take a deep breath and work on this problem step-by-step. Summarize the provided diff into a clear and concise written commit message. Use the imperative style for the subject, use the imperative style for the body, and limit the subject types to 50 characters or less. Optionally, use a scope, and limit the scope types to 50 characters or less. Be as descriptive as possible, but keep it to a single line. Return a single code block. Ready to be pasted into commit edits without further editing.”
5 Likes
This is GOLD!!!