sillyspec 3.11.5 → 3.11.6
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 +1 -1
- package/src/run.js +9 -8
package/package.json
CHANGED
package/src/run.js
CHANGED
|
@@ -233,17 +233,18 @@ export async function runCommand(args, cwd) {
|
|
|
233
233
|
if (autoChange) {
|
|
234
234
|
progress = pm.initChange(cwd, autoChange)
|
|
235
235
|
} else if (!isAuxiliary) {
|
|
236
|
-
// brainstorm / propose
|
|
236
|
+
// brainstorm / propose 作为流程入口,自动生成变更名并初始化
|
|
237
237
|
if (stageName === 'brainstorm' || stageName === 'propose') {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
console.
|
|
241
|
-
console.
|
|
238
|
+
const date = new Date().toISOString().slice(0, 10)
|
|
239
|
+
const autoName = `${date}-new-change`
|
|
240
|
+
console.log(`🔄 自动创建变更:${autoName}`)
|
|
241
|
+
console.log(` 提示:可以用 --change <名称> 指定自定义变更名`)
|
|
242
|
+
progress = pm.initChange(cwd, autoName)
|
|
243
|
+
changeName = autoName
|
|
244
|
+
} else {
|
|
245
|
+
console.error('❌ 未找到 progress.json,请先运行 sillyspec init 或指定 --change <变更名>')
|
|
242
246
|
process.exit(1)
|
|
243
247
|
}
|
|
244
|
-
console.error('❌ 未找到 progress.json,请先运行 sillyspec init')
|
|
245
|
-
console.error(' 提示:使用 --change <name> 指定变更名')
|
|
246
|
-
process.exit(1)
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
250
|
|