From e30a623fec0f957d0b450f247f0e6e9e698336b6 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Wed, 2 Jul 2025 17:56:34 +0800 Subject: [PATCH] feat(commit): improve commit message generation prompt --- packages/commit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/commit/default.nix b/packages/commit/default.nix index 4ef3406..1a94a31 100644 --- a/packages/commit/default.nix +++ b/packages/commit/default.nix @@ -1,8 +1,8 @@ { pkgs, ... }: pkgs.writeShellScriptBin "commit" # bash '' - PROMPT="Please generate a one-line commit message using conventional commit syntax, following the context." - GUIDELINES="1. Use conventional commit syntax, following the context. " + 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." NUM_ANCESTORS=0 # Parse arguments