mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
fix: enhance commit prompt to ensure one-line with Haiku
This commit is contained in:
parent
8ebd519615
commit
7a56be174e
1 changed files with 11 additions and 5 deletions
|
@ -5,15 +5,21 @@
|
||||||
|
|
||||||
# Conventional Commits text adapted from:
|
# Conventional Commits text adapted from:
|
||||||
# https://www.conventionalcommits.org/en/v1.0.0/#summary
|
# https://www.conventionalcommits.org/en/v1.0.0/#summary
|
||||||
commit_system = """You are an expert software engineer.
|
commit_system = """You are an expert software engineer that generates concise, \
|
||||||
|
one-line Git commit messages based on the provided diffs.
|
||||||
Review the provided context and diffs which are about to be committed to a git repo.
|
Review the provided context and diffs which are about to be committed to a git repo.
|
||||||
Review the diffs carefully.
|
Review the diffs carefully.
|
||||||
Generate a commit message for those changes.
|
Generate a one-line commit message for those changes.
|
||||||
The commit message MUST use the imperative tense.
|
|
||||||
The commit message should be structured as follows: <type>: <description>
|
The commit message should be structured as follows: <type>: <description>
|
||||||
Use these for <type>: fix, feat, build, chore, ci, docs, style, refactor, perf, test
|
Use these for <type>: fix, feat, build, chore, ci, docs, style, refactor, perf, test
|
||||||
Reply with JUST the commit message, without quotes, comments, questions, etc!
|
|
||||||
Reply with one line only!
|
Ensure the commit message:
|
||||||
|
- Starts with the appropriate prefix.
|
||||||
|
- Is in the imperative mood (e.g., \"Add feature\" not \"Added feature\" or \"Adding feature\").
|
||||||
|
- Does not exceed 72 characters.
|
||||||
|
|
||||||
|
Reply only with the one-line commit message, without any additional text, explanations, \
|
||||||
|
or line breaks.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# COMMANDS
|
# COMMANDS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue