chore(husky): 添加计划书模块到 commit scope
- 在 commit-msg hook 中添加 plan 到允许的 scope 列表 - 更新帮助文档,说明 plan 为计划书模块 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -21,7 +21,7 @@ echo "" | ... | @@ -21,7 +21,7 @@ echo "" |
| 21 | TYPES="feat|fix|docs|style|refactor|perf|test|chore|revert" | 21 | TYPES="feat|fix|docs|style|refactor|perf|test|chore|revert" |
| 22 | 22 | ||
| 23 | # 允许的范围(常见模块) | 23 | # 允许的范围(常见模块) |
| 24 | -SCOPES="material|product|user|auth|api|ui|config|build|ci|release|husky|chore" | 24 | +SCOPES="material|product|plan|user|auth|api|ui|config|build|ci|release|husky|chore" |
| 25 | 25 | ||
| 26 | # 正则表达式:type(scope): subject | 26 | # 正则表达式:type(scope): subject |
| 27 | # 示例:feat(material): 添加文档列表分类导航 | 27 | # 示例:feat(material): 添加文档列表分类导航 |
| ... | @@ -54,6 +54,7 @@ if ! echo "$COMMIT_MSG" | grep -qE "$PATTERN"; then | ... | @@ -54,6 +54,7 @@ if ! echo "$COMMIT_MSG" | grep -qE "$PATTERN"; then |
| 54 | echo " ${BLUE}范围 (scope):${NC}" | 54 | echo " ${BLUE}范围 (scope):${NC}" |
| 55 | echo " material - 资料/文档模块" | 55 | echo " material - 资料/文档模块" |
| 56 | echo " product - 产品模块" | 56 | echo " product - 产品模块" |
| 57 | + echo " plan - 计划书模块" | ||
| 57 | echo " user - 用户模块" | 58 | echo " user - 用户模块" |
| 58 | echo " auth - 认证模块" | 59 | echo " auth - 认证模块" |
| 59 | echo " api - API 接口" | 60 | echo " api - API 接口" | ... | ... |
-
Please register or login to post a comment