ai-git-tools 2.0.4 → 2.0.5
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
package/src/commands/init.js
CHANGED
|
@@ -24,16 +24,16 @@ export default {
|
|
|
24
24
|
// GitHub 相關配置
|
|
25
25
|
github: {
|
|
26
26
|
orgName: 'your-org-name', // GitHub 組織名稱
|
|
27
|
-
defaultBase: '
|
|
27
|
+
defaultBase: 'release', // 預設 base 分支(或使用 'auto' 自動偵測最新 release 分支,如 release-2025-m11.1)
|
|
28
28
|
autoLabels: true, // 自動新增 Labels
|
|
29
29
|
},
|
|
30
30
|
|
|
31
31
|
// Reviewers 相關配置
|
|
32
32
|
reviewers: {
|
|
33
|
-
autoSelect: false, //
|
|
34
|
-
maxSuggested: 5, //
|
|
35
|
-
gitHistoryDepth: 20, // Git
|
|
36
|
-
excludeAuthors: [], //
|
|
33
|
+
autoSelect: false, // 啟用互動式 reviewer 選擇(true: 顯示選單,false: 跳過,創建 PR 後手動添加)
|
|
34
|
+
maxSuggested: 5, // 最多建議幾位 reviewers(基於 Git 歷史分析)
|
|
35
|
+
gitHistoryDepth: 20, // 分析 Git 歷史的深度(最近 N 筆 commits)
|
|
36
|
+
excludeAuthors: [], // 排除的作者列表(例如:['bot@example.com', 'ci-user'])
|
|
37
37
|
},
|
|
38
38
|
|
|
39
39
|
// 輸出相關配置
|
|
@@ -174,7 +174,7 @@ export async function loadPRConfig() {
|
|
|
174
174
|
if (!config) {
|
|
175
175
|
config = {
|
|
176
176
|
ai: { model: 'gpt-4.1', maxDiffLength: 8000, maxRetries: 3 },
|
|
177
|
-
github: { orgName: 'kingsinfo-project', defaultBase: '
|
|
177
|
+
github: { orgName: 'kingsinfo-project', defaultBase: 'release', autoLabels: true },
|
|
178
178
|
reviewers: { autoSelect: false, maxSuggested: 5, gitHistoryDepth: 20, excludeAuthors: [] },
|
|
179
179
|
output: { verbose: false, saveHistory: false },
|
|
180
180
|
};
|