Files
2025-11-30 08:47:03 +08:00

35 lines
852 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# /commit <ISSUE>
---
根据当前stage的内容和下面指定的风格创建一个 git commit
## STRICT RULES
1. 使用传统的 `feat: xxx` 这种风格
2. 如果用户输出了是 `#xx` 默认提交的是issue的idcommit需要能展现它比如 `fix: xxx (#1)`
3. 允许使用的Type从Types Section中找
---
## Types
feat: A new feature
fix: A bug fix
docs: Documentation changes
style: Code style changes (formatting, etc)
refactor: Code changes that neither fix bugs nor add features
perf: Performance improvements
test: Adding or fixing tests
chore: Changes to the build process, tools, etc.
## Examples
```
feat: initialize personal context project (#1)
- Set up basic project structure
- Add initial configuration files (.gitignore, README.md)
- Create core directories src/ and docs/
- Add base build and run scripts
```