From 373ebeeeb94031c6e536c42f0e5dc3e45127fe7d Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Mon, 27 Apr 2026 00:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20potential=20undefined=20ti?= =?UTF-8?q?meout=20by=20adding=20default=20value=20of=2060000ms=20in=20com?= =?UTF-8?q?mit=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- single-scripts/commit.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/single-scripts/commit.ts b/single-scripts/commit.ts index 93bb1a3..f29d6e4 100755 --- a/single-scripts/commit.ts +++ b/single-scripts/commit.ts @@ -61,7 +61,7 @@ commit.ts [-A|--auto-commit] - auto commit with AI summarize const summary = await new ProcessBar("AI summarizing").call( async (): Promise => { - return await summarizeGitStatusDiff(timeoutMillis); + return await summarizeGitStatusDiff(timeoutMillis ?? 60000); }, ); if (summary != null) { @@ -123,5 +123,5 @@ main().catch((err) => { process.exit(0); }).then(() => process.exit(0)); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260427T000515+08:00.MEUCIQCWHN3NOg3iwZnNIuLp -// 3EqVZEuJjqD4x1+gfgpGgznuEgIga/bS7aBT5mQtp7VWG27mY8DOgBxjDkj0NKTJ+TnqsDM= +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260427T004243+08:00.MEUCICgYmTET6yvrTnmBhYTk +// nNyYQbwTvbf4CHHx0MaRAeYPAiEAxycT0JiWsxRdAl3BcuIld8nwFvwkEh+eT51qEaY23zk=