Skip to content

Commit ba565b5

Browse files
committed
Update commit message guidelines for brevity and speed
1 parent a52de62 commit ba565b5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

aicodebot/prompts/commit_message.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ template_format: f-string
44
input_variables: ["diff_context"]
55
template: |
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.

0 commit comments

Comments
 (0)