fd05621660
Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
846 B
Plaintext
34 lines
846 B
Plaintext
---
|
||
description: Git 提交与 PR 协作规范
|
||
alwaysApply: true
|
||
---
|
||
|
||
# Git 规范
|
||
|
||
## 提交格式
|
||
|
||
Conventional Commits,scope = 端或模块名:
|
||
|
||
```
|
||
feat(trade): add order preview API
|
||
fix(redeem): validate redeem amount against balance
|
||
chore(shared-types): add OrderStatus enum
|
||
```
|
||
|
||
## 禁止提交
|
||
|
||
- `.env`、`.env.local` 等敏感配置
|
||
- `node_modules/`、`dist/`(已在 .gitignore)
|
||
|
||
## PR 与 Review
|
||
|
||
- feature 分支 + 小步 PR
|
||
- 跨模块改动需相关双 Owner Review
|
||
- Prisma 迁移必须多 Owner Review
|
||
|
||
## Agent 行为
|
||
|
||
- **仅用户明确要求时** 才执行 git commit / push
|
||
- 不 amend 已推送的 commit,不 force push main/master/dev
|
||
- 发版:`dev`→测试(staging),`main`→生产;用户只说「发布/发版」默认发**生产**(见 dukang-release skill);明确说「发测试」才发 staging
|