🐛 Fix potential undefined timeout by adding default value of 60000ms in commit script
This commit is contained in:
@@ -61,7 +61,7 @@ commit.ts [-A|--auto-commit] - auto commit with AI summarize
|
|||||||
|
|
||||||
const summary = await new ProcessBar("AI summarizing").call(
|
const summary = await new ProcessBar("AI summarizing").call(
|
||||||
async (): Promise<string> => {
|
async (): Promise<string> => {
|
||||||
return await summarizeGitStatusDiff(timeoutMillis);
|
return await summarizeGitStatusDiff(timeoutMillis ?? 60000);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
if (summary != null) {
|
if (summary != null) {
|
||||||
@@ -123,5 +123,5 @@ main().catch((err) => {
|
|||||||
process.exit(0);
|
process.exit(0);
|
||||||
}).then(() => process.exit(0));
|
}).then(() => process.exit(0));
|
||||||
|
|
||||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260427T000515+08:00.MEUCIQCWHN3NOg3iwZnNIuLp
|
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260427T004243+08:00.MEUCICgYmTET6yvrTnmBhYTk
|
||||||
// 3EqVZEuJjqD4x1+gfgpGgznuEgIga/bS7aBT5mQtp7VWG27mY8DOgBxjDkj0NKTJ+TnqsDM=
|
// nNyYQbwTvbf4CHHx0MaRAeYPAiEAxycT0JiWsxRdAl3BcuIld8nwFvwkEh+eT51qEaY23zk=
|
||||||
|
|||||||
Reference in New Issue
Block a user