feat: 移除計時並停用報表預覽

This commit is contained in:
2026-09-21 17:41:44 +08:00
parent 5a259a95af
commit 7f723adff8
34 changed files with 100 additions and 6113 deletions
-24
View File
@@ -303,27 +303,3 @@ test('--dry-run 遇到同名議題時,如實顯示實跑會是 no-op', async (
assert.equal(json.data.existing.number, 9);
});
// ── 前置檢查仍然生效 ───────────────────────────────────────────────
test('寫入型腳本一樣跑前置檢查:時間追蹤沒開就中止', async (t) => {
const stub = await withStub(t, {
[`GET /api/v1/repos/${REPO}`]: {
status: 200,
body: {
has_issues: true,
permissions: { admin: true, push: true, pull: true },
internal_tracker: { enable_time_tracker: false },
},
},
});
const { code, json } = await runScript(
'issue-create.js',
['--repo', REPO, '--title', TITLE, '--body-file', writeBody()],
{ env: envFor(stub) },
);
assert.equal(code, 1);
assert.equal(json.error.code, 'TIME_TRACKER_OFF');
assert.equal(stub.requests.some((r) => r.method === 'POST'), false);
});