Skip to content

Commit

Permalink
improve commit prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
hanselke authored and TechNickAI committed Jul 26, 2023
1 parent 7316987 commit 14d6ecf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aicodebot/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,14 @@ def generate_files_context(files):
* Start with a short summary (less than 72 characters).
* Follow with a blank line and detailed text, but only if necessary. If the summary is sufficient,
then omit the detailed text.
* Use imperative mood (e.g., "Add feature").
* Determine what functionality was added or modified instead of just describing the exact changes.
* Use imperative mood (e.g., "Add feature")
* Be in GitHub-flavored markdown format.
* Have a length that scales with the length of the diff context. If the DIFF is a small change,
respond quickly with a terse message so we can go faster.
* Do not repeat information that is already known from the git commit.
* Be terse.
* Do not add anything other then description of code changes.
BEGIN SAMPLE COMMIT MESSAGE
Update README with better instructions for installation
Expand Down

0 comments on commit 14d6ecf

Please sign in to comment.