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
This commit is contained in:
1 file changed
+12
-9
@@ -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:
|
Format:
|
||||||
- Title line: `<type>(<scope>): <summary>` (scope is `{{ group_name }}` or `root`).
|
<type>(<scope>): <summary>
|
||||||
- Optional body: A short summary of why.
|
[optional 1-2 line body on WHY]
|
||||||
- Details: Bullet points for `New Features`, `Enhancements`, `Bug Fixes`.
|
|
||||||
- Output ONLY the message itself, without any labels like "Title:" or "Format:".
|
|
||||||
|
|
||||||
Diff for `{{ group_name }}`:
|
types: feat fix refactor perf docs test build ci chore style
|
||||||
{{ diff_text }}
|
scope: {{ group_name }}{% if use_emoji %} (prefix summary with one matching emoji){% endif %}
|
||||||
{{ context }}
|
|
||||||
|
Example:
|
||||||
|
feat(auth): add login rate limit
|
||||||
|
Prevents brute-force attacks.
|
||||||
|
|
||||||
|
{{ diff_text }}{{ context }}
|
||||||
Reference in new issue
Block a user