feat(commit): improve commit message prompt guidelines

This commit is contained in:
Mohammad Rafiq 2025-07-03 21:17:14 +08:00
parent 7be3efed4e
commit 9fffa1d295
No known key found for this signature in database

View file

@ -2,7 +2,7 @@
pkgs.writeShellScriptBin "commit" # bash pkgs.writeShellScriptBin "commit" # bash
'' ''
PROMPT="Please generate a commit message for this diff." PROMPT="Please generate a commit message for this diff."
GUIDELINES="1. Use conventional commit syntax, following the context. 2. Cap the commit message at 80 characters, preferably less. You must not go beyond this limit. 3. Do not include backticks. Only generate the raw text." GUIDELINES="1. Use conventional commit syntax, following the context. 2. Cap the commit message at 80 characters, preferably less. You must not go beyond this limit. 3. Do not include backticks. Only generate the raw text. 4. Be as succint as possible. Each commit should be atomic. You may throw a warning if it is not."
NUM_ANCESTORS=0 NUM_ANCESTORS=0
# Parse arguments # Parse arguments