Files
sechskies/.cursor/rules/git-commit-required.mdc
T

27 lines
919 B
Plaintext
Raw 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.
---
description: 當使用者完成程式碼修改、改檔任務後,必須強制執行的結尾規範。
globs: "*"
alwaysApply: true
---
# Git commit 訊息絕對規範
只要本次對話中**有任何改檔、寫 Code、生成程式碼、調整結構的任務完成**,你(AI)在回覆結尾**必須、強制、主動**附上 commit 指令,絕對不准等使用者開口要!
> ⚠️ **死線警告**:若本次對話完全沒有改動任何檔案、純屬聊天或觀念問答,則「不必」附上。
**禁止**為了附 commit 而跑 `git status``git diff``git log`;只貼指令,由站主在本機執行。
### 輸出格式(一字不差):
```bash
git add .
git commit -m "type: 重點"
```
| 項目 | 約定 |
|------|------|
| type | `feat``fix``style` 三選一 |
| 重點 | **15 字以內**(標點計入) |
| add | **一律 `git add .`**,禁止只 add 單檔 |