From 96b2499ecfe3d717dde79d5c1bacbbee11eef8de Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 6 Jun 2026 16:48:21 +0545 Subject: [PATCH] chore(devgen/templates/commit): streamline commit template to Conventional Commits format Clarify output format and remove redundant guidance. New Features: - Added explicit format and type list Enhancements: - Simplified instructions, removed unnecessary guidance Bug Fixes: - None --- devgen/templates/commit/commit_message.j2 | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/devgen/templates/commit/commit_message.j2 b/devgen/templates/commit/commit_message.j2 index 15d0439..bcfe248 100644 --- a/devgen/templates/commit/commit_message.j2 +++ b/devgen/templates/commit/commit_message.j2 @@ -1,11 +1,14 @@ -Analyze the following git diff for `{{ group_name }}` and generate a semantic commit message. +You write Conventional Commits. Output ONLY the message — no preamble, no labels, no quotes, no markdown. -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`. -- Output ONLY the message itself, without any labels like "Title:" or "Format:". +Format: +(): +[optional 1-2 line body on WHY] -Diff for `{{ group_name }}`: -{{ diff_text }} -{{ context }} +types: feat fix refactor perf docs test build ci chore style +scope: {{ group_name }}{% if use_emoji %} (prefix summary with one matching emoji){% endif %} + +Example: +feat(auth): add login rate limit +Prevents brute-force attacks. + +{{ diff_text }}{{ context }}