From 9127f26fd8c909b9b86bacacb13ea0717ed280b5 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 11 Jul 2026 06:21:24 +0000 Subject: [PATCH] =?UTF-8?q?fix(calculate-version):=20=E7=B5=B1=E4=B8=80?= =?UTF-8?q?=E8=BC=B8=E5=87=BA=E8=A8=8A=E6=81=AF=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 87f9840..2df8892 100644 --- a/src/index.js +++ b/src/index.js @@ -4,13 +4,19 @@ const https = require('https'); const { URL } = require('url'); const RELEASES_PER_PAGE = 10; +let currentStage = null; function section(title) { - process.stdout.write(`\n==================================================\n${title}\n--------------------------------------------------\n`); + currentStage = title; } function info(message) { - process.stdout.write(`[info] ${message}\n`); + const timestamp = new Date() + .toLocaleString('sv-SE', { timeZone: 'Asia/Taipei', hour12: false }) + .replace(/-/g, '/'); + const stagePrefix = currentStage ? `[${currentStage}]` : ''; + + process.stdout.write(`${stagePrefix}[INF][${timestamp}]: ${message}\n`); } function fail(message) {