Skip to content

Commit f80495f

Browse files
committed
feat(commit-message): improve commit message generation template for Chinese and English users, ensuring clarity and adherence to best practices.
1 parent c20d8d4 commit f80495f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/genius/en/practises/gen-commit-msg.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Follow the Conventional Commits specification, examples:
1111
- docs(architecture): add architecture diagram to home page
1212

1313
#if( $context.historyExamples.length() > 0 )
14-
Here is History Examples:
14+
Here are the user's historical commit habits:
1515
$context.historyExamples
1616
#end
1717

src/main/resources/genius/zh/practises/gen-commit-msg.vm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
为给定的 Diff编写一个连贯但具有描述性的提交信息
1+
为给定的变更(Diff)编写一个连贯但具有描述性的提交信息
22

33
- 确保包含修改了什么以及为什么。
44
- 以不超过 50 个字符的祈使句形式开头。
55
- 然后留下一个空行,如有必要,继续详细说明。
6-
- 说明应该少于200个字符
6+
- 说明应该少于 200 个字符
77

88
遵循常规提交规范,例如:
99

@@ -13,7 +13,7 @@
1313
- docs(architecture): 在主页添加架构图
1414

1515
#if( $context.historyExamples.length() > 0 )
16-
下面是历史示例
16+
以下是用户的历史提交习惯
1717
$context.historyExamples
1818
#end
1919

0 commit comments

Comments
 (0)