ai-git-tools 2.0.21 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-git-tools",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "AI-powered Git automation tools for commit messages and PR generation",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -38,7 +38,7 @@ export default {
38
38
 
39
39
  // 輸出相關配置
40
40
  output: {
41
- verbose: false, // 詳細輸出
41
+ verbose: true, // 詳細輸出
42
42
  },
43
43
  };
44
44
  `;
@@ -105,6 +105,7 @@ ${skillsSummary}
105
105
  # [type]: [PR 標題]
106
106
 
107
107
  > type 必須是以下之一:feat / fix / refactor / style / docs / test / chore / perf
108
+ > **重要**:如果有新增任何功能、新增檔案、新增 API、新增組件,優先使用 **feat**
108
109
 
109
110
  ## 📝 變更摘要
110
111
  [簡述這個 PR 的主要目的和影響範圍,2-3 句話]
@@ -123,7 +124,18 @@ ${skillsSummary}
123
124
  - [ ] ⚡ 效能改進 (perf)
124
125
  - [ ] 🔧 其他 (chore)
125
126
 
126
- > **重要**: 請根據實際變更**自動勾選**對應的類型(可複選),將 [ ] 改為 [x]
127
+ > **重要**: 請仔細分析 diff 和 commit 訊息,**自動勾選**對應的類型(可複選),將 [ ] 改為 [x]
128
+ >
129
+ > **判斷準則**:
130
+ > - ✨ **新功能 (feat)**: 新增檔案、新增 API、新增組件、新增功能邏輯、新增配置選項
131
+ > - 🐛 **Bug 修復 (fix)**: 修復錯誤、修正邏輯問題
132
+ > - ♻️ **重構 (refactor)**: 重組程式碼結構但不改變功能
133
+ > - 💄 **樣式調整 (style)**: UI/CSS 調整、格式化
134
+ > - 📝 **文件更新 (docs)**: README、註解、文檔變更
135
+ > - ⚡ **效能改進 (perf)**: 優化效能
136
+ > - 🔧 **其他 (chore)**: 建構工具、依賴更新、配置調整
137
+ >
138
+ > **特別注意**: 如果 diff 中有「新增檔案」或「新增功能」,**務必勾選** ✨ 新功能 (feat)
127
139
 
128
140
  ## 🧪 測試方法
129
141
  1. [具體的測試步驟 1]
@@ -166,6 +178,12 @@ ${skillsSummary}
166
178
  4. 全部使用繁體中文(台灣正體)
167
179
  5. 不要在開頭加引導語句
168
180
  6. 直接開始輸出 # [type]: [標題]
181
+ 7. **變更類型判斷必須準確**:
182
+ - 檢查 diff 中是否有 "new file mode" 或大量 "+++" 行(表示新增檔案)
183
+ - 檢查 commit 訊息是否包含「新增」、「add」、「feat」等關鍵字
184
+ - 檢查主要變更列表,如果提到「新增 xxx」就必須勾選 ✨ 新功能 (feat)
185
+ - 新增配置檔、新增組件、新增 API、新增功能都算 feat
186
+ - 一個 PR 可以同時是多種類型(如:feat + refactor + chore)
169
187
 
170
188
  ---
171
189