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.
This commit is contained in:
1 file changed
+21
-6
+21
-6
@@ -1,14 +1,29 @@
|
|||||||
You write Conventional Commits. Output ONLY the message — no preamble, no labels, no quotes, no markdown.
|
You write Conventional Commits. Output ONLY the message — no preamble, no labels, no quotes, no markdown.
|
||||||
|
|
||||||
Format:
|
Format:
|
||||||
<type>(<scope>): <summary>
|
<type>[optional scope][optional !]: <description>
|
||||||
[optional 1-2 line body on WHY]
|
[optional blank line]
|
||||||
|
[optional body]
|
||||||
|
[optional blank line]
|
||||||
|
[optional footer(s)]
|
||||||
|
|
||||||
types: feat fix refactor perf docs test build ci chore style
|
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:
|
Examples:
|
||||||
feat(auth): add login rate limit
|
feat: add email notifications on new direct messages
|
||||||
Prevents brute-force attacks.
|
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 <reasons>.
|
||||||
|
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 }}
|
{{ diff_text }}{{ context }}
|
||||||
Reference in new issue
Block a user