ai-git-tools 2.0.16 → 2.0.17
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
|
@@ -13,7 +13,7 @@ export function parseCliArgs() {
|
|
|
13
13
|
draft: false,
|
|
14
14
|
preview: false,
|
|
15
15
|
noConfirm: false,
|
|
16
|
-
|
|
16
|
+
autoReviewers: false,
|
|
17
17
|
autoLabels: null,
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -61,7 +61,7 @@ export function parseCliArgs() {
|
|
|
61
61
|
*/
|
|
62
62
|
export async function loadConfig() {
|
|
63
63
|
// 1. 載入預設配置
|
|
64
|
-
const configPath = resolve(process.cwd(), '.ai-
|
|
64
|
+
const configPath = resolve(process.cwd(), '.ai-git-config.mjs');
|
|
65
65
|
let config = null;
|
|
66
66
|
|
|
67
67
|
if (existsSync(configPath)) {
|
|
@@ -82,8 +82,9 @@ export async function loadConfig() {
|
|
|
82
82
|
|
|
83
83
|
// 合併配置(CLI 參數優先)
|
|
84
84
|
if (cliConfig.model) config.ai.model = cliConfig.model;
|
|
85
|
-
if (cliConfig.
|
|
86
|
-
if (cliConfig.
|
|
85
|
+
if (cliConfig.orgName) config.github.orgName = cliConfig.orgName;
|
|
86
|
+
if (cliConfig.autoReviewers) config.reviewers.autoSelect = cliConfig.autoReviewers;
|
|
87
|
+
if (cliConfig.autoLabels) config.github.autoLabels = cliConfig.autoLabels;
|
|
87
88
|
|
|
88
89
|
// 其他 CLI 參數直接加入 config
|
|
89
90
|
config.baseBranch = cliConfig.baseBranch;
|