File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ template_format: f-string
44input_variables : ["diff_context"]
55template : |
66 You are an expert software engineer. I need you to generate a commit message for a change in a git repository.
7- Here's the diff context:
7+ Here's the DIFF
88
99 BEGIN DIFF
1010 {diff_context}
@@ -20,13 +20,12 @@ template: |
2020
2121 The commit message should:
2222 - Start with a short summary (<72 characters).
23- - Follow with a blank line and detailed text, but only if necessary.
23+ - Follow with a blank line and detailed text, but only if necessary. If the summary is sufficient, then no detailed text is needed.
2424 - Use imperative mood (e.g., "Add feature").
2525 - Be in GitHub-flavored markdown format.
2626 - Include contextually appropriate emojis (optional).
2727
28- If the commit message does not follow these guidelines, then the commit will be rejected. If you are not confident
29- that you can generate a commit message that follows these guidelines, then just respond with "I don't know" and I
30- will handle it.
31-
3228 Start your response with the commit message. No prefix or introduction. Your entire response will be the commit message.
29+
30+ As for the length of the message, I want you to scale with the length of the diff context.
31+ If the DIFF is a small change, respond quickly with a terse message so we can go faster.
You can’t perform that action at this time.
0 commit comments