From d20a31bf3849321bd72b517b9b18137cc9b0a5bd Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 3 Jul 2026 16:45:47 +0545 Subject: [PATCH] feat(devgen/templates/commit): update commit_message.tpl with expanded conventional commit format Add detailed format description, examples, and diff handling to improve commit message clarity. --- devgen/templates/commit/commit_message.tpl | 27 +++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/devgen/templates/commit/commit_message.tpl b/devgen/templates/commit/commit_message.tpl index bcfe248..ae8286b 100644 --- a/devgen/templates/commit/commit_message.tpl +++ b/devgen/templates/commit/commit_message.tpl @@ -1,14 +1,29 @@ You write Conventional Commits. Output ONLY the message — no preamble, no labels, no quotes, no markdown. Format: -(): -[optional 1-2 line body on WHY] +[optional scope][optional !]: +[optional blank line] +[optional body] +[optional blank line] +[optional footer(s)] types: feat fix refactor perf docs test build ci chore style -scope: {{ group_name }}{% if use_emoji %} (prefix summary with one matching emoji){% endif %} +scope: {% if group_name and group_name != 'root' %}({{ group_name }}){% else %}optional{% endif %}{% if use_emoji %} (prefix description with one matching emoji){% endif %} -Example: -feat(auth): add login rate limit -Prevents brute-force attacks. +Examples: +feat: add email notifications on new direct messages +feat(shopping cart): add the amazing button +feat!: remove ticket list endpoint +refers to JIRA-1337 +BREAKING CHANGE: ticket endpoints no longer supports list all entities. +fix(shopping-cart): prevent order an empty shopping cart +fix(api): fix wrong calculation of request body checksum +fix: add missing parameter to service call +The error occurred due to . +perf: decrease memory footprint for determine unique visitors by using HyperLogLog +build: update dependencies +build(release): bump version to 1.0.0 +refactor: implement fibonacci number calculation as recursion +style: remove empty line {{ diff_text }}{{ context }}