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.
This commit is contained in:
sankalp committed 2025-12-24 23:49:34 +05:45
1 parent 4d309c313d
commit 40c9b3ca57
1 file changed
+7 -10
+7 -10
View File
@@ -1,14 +1,11 @@
Analyze the following git diff for `{{ group_name }}` and generate a semantic commit message.
Format:
1. Title: `<type>(<scope>): <summary>` (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: `<type>(<scope>): <summary>` (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 }}