From 40c9b3ca57d88b15823998d222b0f8a3137d0beb Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Wed, 24 Dec 2025 23:49:34 +0545 Subject: [PATCH] refactor(devgen/templates/commit): update commit message template guidelines - Simplify and clarify the structure of commit message generation guidelines. - Replace "Format" with "Guidelines" for better readability. - Remove redundant section numbering. - Streamline emoji usage instruction into a single line. - Clarify that the output should exclude labels like "Title:" or "Format:". **Enhancements:** - Improved template structure for better maintainability. - More concise and direct instructions for users. --- devgen/templates/commit/commit_message.j2 | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/devgen/templates/commit/commit_message.j2 b/devgen/templates/commit/commit_message.j2 index 4f859c9..69876e3 100644 --- a/devgen/templates/commit/commit_message.j2 +++ b/devgen/templates/commit/commit_message.j2 @@ -1,14 +1,11 @@ Analyze the following git diff for `{{ group_name }}` and generate a semantic commit message. -Format: -1. Title: `(): ` (scope is `{{ group_name }}` or `root`). -2. Optional short summary. -3. Bullet points: `New Features`, `Enhancements`, `Bug Fixes`. Use **bold** for section names. -{% if use_emoji %} -4. Use emojis (e.g., 🚀, 🐛). -{% else %} -4. No emojis. -{% endif %} -Output ONLY the message. + +Guidelines: +- Title line: `(): ` (scope is `{{ group_name }}` or `root`). +- Optional body: A short summary of why. +- Details: Bullet points for `New Features`, `Enhancements`, `Bug Fixes`. +- {{ "Use emojis (🚀, 🐛)." if use_emoji else "No emojis." }} +- Output ONLY the message itself, without any labels like "Title:" or "Format:". Diff for `{{ group_name }}`: {{ diff_text }}