Skip to content

Conversation

@ice909
Copy link
Contributor

@ice909 ice909 commented Jun 30, 2025

feat: 添加仅英文提交信息支持

  1. 添加 only_english 配置选项以补充现有的 only_chinese 设置
  2. 实现冲突解决机制,其中 only_english 优先级高于 only_chinese
  3. 更新提示生成以支持三种语言模式:仅英文、仅中文和双语
  4. 为 commit 命令添加 --only-english 命令行参数
  5. 扩展配置管理以处理新的仅英文设置
  6. 更新状态显示以显示当前语言模式(仅英文/仅中文/双语)

refactor: 重构提交消息提示词生成系统
使用枚举驱动架构替换复杂的匹配模式处理,提高可维护性。添加 LanguageMode枚举来管理英文、中文和双语消息生成模式。将提示词模板提取为常量,创建统一的 build_prompt 函数以消除代码重复并提高可读性。

docs: 更新语言选项的CLI文档

  1. 为config和commit命令添加--only-english标志
  2. 更新命令表格以显示新的语言配置选项
  3. 添加仅英文提交生成的示例
  4. 澄清双语与单语配置
  5. 修复输出示例的代码块格式

ice909 added 3 commits June 30, 2025 19:38
1. Add `only_english` configuration option to complement existing
`only_chinese` setting
2. Implement conflict resolution where `only_english` takes precedence
over `only_chinese`
3. Update prompt generation to support three language modes: English-
only, Chinese-only, and bilingual
4. Add command line argument `--only-english` for commit command
5. Extend configuration management to handle the new English-only
setting
6. Update status display to show current language mode (English-only/
Chinese-only/bilingual)

feat: 添加仅英文提交信息支持

1. 添加 `only_english` 配置选项以补充现有的 `only_chinese` 设置
2. 实现冲突解决机制,其中 `only_english` 优先级高于 `only_chinese`
3. 更新提示生成以支持三种语言模式:仅英文、仅中文和双语
4. 为 commit 命令添加 `--only-english` 命令行参数
5. 扩展配置管理以处理新的仅英文设置
6. 更新状态显示以显示当前语言模式(仅英文/仅中文/双语)
Replaced complex match-based prompt handling with enum-driven
architecture for better maintainability. Added LanguageMode enum
to manage English, Chinese, and bilingual message generation modes.
Extracted prompt templates into constants and created unified
build_prompt function to eliminate code duplication and improve
readability.

refactor: 重构提交消息提示词生成系统

使用枚举驱动架构替换复杂的匹配模式处理,提高可维护性。添加 LanguageMode
枚举来管理英文、中文和双语消息生成模式。将提示词模板提取为常量,创建统一
的 build_prompt 函数以消除代码重复并提高可读性。
1. Add --only-english flag to config and commit commands
2. Update command table to show new language configuration options
3. Add examples for English-only commit generation
4. Clarify bilingual vs single-language configuration
5. Fix code block formatting for output examples

docs: 更新语言选项的CLI文档

1. 为config和commit命令添加--only-english标志
2. 更新命令表格以显示新的语言配置选项
3. 添加仅英文提交生成的示例
4. 澄清双语与单语配置
5. 修复输出示例的代码块格式
@ice909
Copy link
Contributor Author

ice909 commented Jun 30, 2025

@zccrs Aur push的ci好像还有点问题

@zccrs zccrs self-requested a review July 17, 2025 07:55
@zccrs
Copy link
Owner

zccrs commented Jul 17, 2025

@zccrs Aur push的ci好像还有点问题

是的,不应该在pr里运行这俩action

@zccrs zccrs merged commit 6eaee29 into zccrs:master Jul 17, 2025
8 of 10 checks passed
@zccrs
Copy link
Owner

zccrs commented Jul 17, 2025

感谢贡献!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants