ai-git-tools 2.0.2 → 2.0.3
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/bin/cli.js +17 -17
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -29,36 +29,36 @@ program
|
|
|
29
29
|
// Commit 命令
|
|
30
30
|
program
|
|
31
31
|
.command('commit')
|
|
32
|
-
.description('AI
|
|
32
|
+
.description('AI 自動生成 commit message 並提交')
|
|
33
33
|
.option('--model <model>', '指定 AI 模型')
|
|
34
|
-
.option('-v, --verbose', '
|
|
35
|
-
.option('--max-diff <number>', '最大 diff
|
|
36
|
-
.option('--max-retries <number>', '
|
|
34
|
+
.option('-v, --verbose', '顯示詳細輸出')
|
|
35
|
+
.option('--max-diff <number>', '最大 diff 長度')
|
|
36
|
+
.option('--max-retries <number>', '最大重試次數')
|
|
37
37
|
.action(commitCommand);
|
|
38
38
|
|
|
39
39
|
// Commit All 命令
|
|
40
40
|
program
|
|
41
41
|
.command('commit-all')
|
|
42
|
-
.description('
|
|
42
|
+
.description('智慧分析所有變更並自動分組提交')
|
|
43
43
|
.option('--model <model>', '指定 AI 模型')
|
|
44
|
-
.option('-v, --verbose', '
|
|
45
|
-
.option('--max-diff <number>', '最大 diff
|
|
46
|
-
.option('--max-retries <number>', '
|
|
44
|
+
.option('-v, --verbose', '顯示詳細輸出')
|
|
45
|
+
.option('--max-diff <number>', '最大 diff 長度')
|
|
46
|
+
.option('--max-retries <number>', '最大重試次數')
|
|
47
47
|
.action(commitAllCommand);
|
|
48
48
|
|
|
49
49
|
// PR 命令
|
|
50
50
|
program
|
|
51
51
|
.command('pr')
|
|
52
|
-
.description('AI
|
|
53
|
-
.option('--base <branch>', '
|
|
54
|
-
.option('--head <branch>', '
|
|
52
|
+
.description('AI 自動生成 PR 並創建 Pull Request')
|
|
53
|
+
.option('--base <branch>', '指定目標分支')
|
|
54
|
+
.option('--head <branch>', '指定來源分支')
|
|
55
55
|
.option('--model <model>', '指定 AI 模型')
|
|
56
|
-
.option('--org <org-name>', '指定 GitHub
|
|
57
|
-
.option('--draft', '
|
|
58
|
-
.option('--preview', '
|
|
59
|
-
.option('--no-confirm', '
|
|
60
|
-
.option('--auto-reviewers', '
|
|
61
|
-
.option('--auto-labels', '
|
|
56
|
+
.option('--org <org-name>', '指定 GitHub 組織名稱')
|
|
57
|
+
.option('--draft', '創建草稿 PR')
|
|
58
|
+
.option('--preview', '僅預覽 PR 內容,不實際創建')
|
|
59
|
+
.option('--no-confirm', '跳過確認直接創建')
|
|
60
|
+
.option('--auto-reviewers', '自動選擇 reviewers')
|
|
61
|
+
.option('--auto-labels', '自動添加 Labels')
|
|
62
62
|
.option('--no-labels', '不添加 Labels')
|
|
63
63
|
.action(prCommand);
|
|
64
64
|
|