Skip to content

Commit 86c9aa3

Browse files
committed
chore: Fix typo in prompt templates
This commit fixes a minor typo in the bilingual prompt templates used for generating commit messages. The list items within the "Testing Suggestions" sections had hyphens instead of numbered list markers ("1.", "2.", etc.). This change ensures that the generated commit messages adhere to the specified format and are more readable. This does not impact the functionality of the application but improves the quality and consistency of generated documentation. Testing Suggestions: 1. Verify that the generated commit messages now have numbered lists in the "Testing Suggestions" sections. 2. Ensure that the tool can generate testing suggestions with the numbered list and without hyphens. 3. Manually review generated commit messages for correct formatting. chore: 修复提示模板中的拼写错误 此提交修复了用于生成提交消息的双语提示模板中的一个小的拼写错误。 “测试建 议”部分中的列表项使用连字符而不是编号列表标记(“1.”、“2.” 等)。 此更改 确保生成的提交消息符合指定的格式并且更具可读性。 这不会影响应用程序的功 能,但会提高生成文档的质量和一致性。 测试建议: 1. 验证生成的提交消息现在在“测试建议”部分中是否具有编号列表。 2. 确保该工具可以生成带有编号列表而没有连字符的测试建议。 3. 手动检查生成的提交消息,以确保格式正确。
1 parent 69f7319 commit 86c9aa3

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,12 @@ feat: 添加用户认证模块
320320
4. 设置令牌刷新机制
321321
322322
测试建议:
323-
- 测试用户注册功能,包括有效和无效输入
324-
- 验证登录功能,测试正确和错误的凭据
325-
- 测试 JWT 令牌生成和验证流程
326-
- 验证密码安全性和哈希处理
327-
- 测试令牌刷新机制和过期处理
328-
- 验证受保护端点的访问控制
323+
1. 测试用户注册功能,包括有效和无效输入
324+
2. 验证登录功能,测试正确和错误的凭据
325+
3. 测试 JWT 令牌生成和验证流程
326+
4. 验证密码安全性和哈希处理
327+
5. 测试令牌刷新机制和过期处理
328+
6. 验证受保护端点的访问控制
329329
```
330330

331331
远程代码审查功能包含:

src/commit.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ feat: add user authentication module
3232
4. Set up token refresh mechanism
3333
3434
Testing Suggestions:
35-
- Test user registration with valid and invalid inputs
36-
- Verify login functionality with correct and incorrect credentials
37-
- Test JWT token generation and validation
38-
- Verify password security and hashing
39-
- Test token refresh mechanism and expiration handling
40-
- Verify access control for protected endpoints
35+
1. Test user registration with valid and invalid inputs
36+
2. Verify login functionality with correct and incorrect credentials
37+
3. Test JWT token generation and validation
38+
4. Verify password security and hashing
39+
5. Test token refresh mechanism and expiration handling
40+
6. Verify access control for protected endpoints
4141
4242
Please respond with ONLY the commit message following this format,
4343
DO NOT end commit titles with any punctuation."#;
@@ -63,12 +63,12 @@ feat: 添加用户认证模块
6363
4. 设置令牌刷新机制
6464
6565
测试建议:
66-
- 测试用户注册功能,包括有效和无效输入
67-
- 验证登录功能,测试正确和错误的凭据
68-
- 测试 JWT 令牌生成和验证流程
69-
- 验证密码安全性和哈希处理
70-
- 测试令牌刷新机制和过期处理
71-
- 验证受保护端点的访问控制"#;
66+
1. 测试用户注册功能,包括有效和无效输入
67+
2. 验证登录功能,测试正确和错误的凭据
68+
3. 测试 JWT 令牌生成和验证流程
69+
4. 验证密码安全性和哈希处理
70+
5. 测试令牌刷新机制和过期处理
71+
6. 验证受保护端点的访问控制"#;
7272

7373
const BILINGUAL_PROMPT_TEMPLATE: &str = r#"Please analyze the git diff content and generate a detailed bilingual commit message with:
7474
1. First line in English: type: message (under 50 characters)
@@ -94,12 +94,12 @@ feat: add user authentication module
9494
4. Set up token refresh mechanism
9595
9696
Testing Suggestions:
97-
- Test user registration with valid and invalid inputs
98-
- Verify login functionality with correct and incorrect credentials
99-
- Test JWT token generation and validation
100-
- Verify password security and hashing
101-
- Test token refresh mechanism and expiration handling
102-
- Verify access control for protected endpoints
97+
1. Test user registration with valid and invalid inputs
98+
2. Verify login functionality with correct and incorrect credentials
99+
3. Test JWT token generation and validation
100+
4. Verify password security and hashing
101+
5. Test token refresh mechanism and expiration handling
102+
6. Verify access control for protected endpoints
103103
104104
feat: 添加用户认证模块
105105
@@ -109,12 +109,12 @@ feat: 添加用户认证模块
109109
4. 设置令牌刷新机制
110110
111111
测试建议:
112-
- 测试用户注册功能,包括有效和无效输入
113-
- 验证登录功能,测试正确和错误的凭据
114-
- 测试 JWT 令牌生成和验证流程
115-
- 验证密码安全性和哈希处理
116-
- 测试令牌刷新机制和过期处理
117-
- 验证受保护端点的访问控制
112+
1. 测试用户注册功能,包括有效和无效输入
113+
2. 验证登录功能,测试正确和错误的凭据
114+
3. 测试 JWT 令牌生成和验证流程
115+
4. 验证密码安全性和哈希处理
116+
5. 测试令牌刷新机制和过期处理
117+
6. 验证受保护端点的访问控制
118118
119119
Please respond with ONLY the commit message following this format,
120120
DO NOT end commit titles with any punctuation."#;

0 commit comments

Comments
 (0)