fix(sdlc-fix): 需求議題本來就沒有未整併留言時照樣列出工作包
原本只寫「未處理數大於 0 就先整併」,零則的入口從沒明寫,讀起來會變成 「沒有留言要處理就到此為止」,正好與「無未整併留言時要列出工作包」相反。 另把交棒的另一端補在 sdlc-feat 的輸入上——機制只有一邊寫得出來, 另一邊就只是散文承諾。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,14 @@ const phase1 = prompt.slice(prompt.indexOf('## 第一段'), prompt.indexOf('##
|
||||
const phase2 = prompt.slice(prompt.indexOf('## 第二段'), prompt.indexOf('## 第三段'));
|
||||
const phase3 = prompt.slice(prompt.indexOf('## 第三段'), prompt.indexOf('## 邊界'));
|
||||
|
||||
|
||||
test('輸入收得下 /sdlc-fix 交棒過來的編號,且不要求使用者重打指令', () => {
|
||||
const 輸入 = prompt.slice(prompt.indexOf('## 輸入'), prompt.indexOf('## 第一段'));
|
||||
assert.match(輸入, /sdlc-fix/);
|
||||
assert.match(輸入, /交棒/);
|
||||
assert.match(輸入, /不要因為是交棒來的就要求他再打一次指令/);
|
||||
});
|
||||
|
||||
test('正本平台中立,description 前綴正確', () => {
|
||||
assertNeutralPrompt(prompt, 'sdlc-feat');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user