From 29f8002fe04a8d6802dca9f435afa09c0596dc55 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Apr 2026 08:17:50 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCode=20Review=E5=8F=8D?= =?UTF-8?q?=E9=A6=88:=20=E9=99=A4=E9=9B=B6=E6=A3=80=E6=9F=A5+=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1ID=E6=97=B6=E9=97=B4=E6=88=B3=E5=8C=96+=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E6=8C=87=E5=8D=97=E7=A7=81=E6=9C=89=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/fcc32ea2-c4e3-4d50-8e30-b7c617c2926f Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- .github/workflows/cos-bridge-dispatch-to-qiuqiu.yml | 2 +- fifth-system/darkcore-channel/deployment-guide-for-zhizhi.md | 5 ++++- scripts/task-tree-manager.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cos-bridge-dispatch-to-qiuqiu.yml b/.github/workflows/cos-bridge-dispatch-to-qiuqiu.yml index 43bb66d7..9e7a3e8d 100644 --- a/.github/workflows/cos-bridge-dispatch-to-qiuqiu.yml +++ b/.github/workflows/cos-bridge-dispatch-to-qiuqiu.yml @@ -54,7 +54,7 @@ jobs: id: task_id run: | DATE=$(TZ='Asia/Shanghai' date +%Y%m%d) - SEQ=$(printf '%03d' $((RANDOM % 999 + 1))) + SEQ=$(TZ='Asia/Shanghai' date +%H%M%S) echo "id=TASK-${DATE}-${SEQ}" >> $GITHUB_OUTPUT echo "date=${DATE}" >> $GITHUB_OUTPUT diff --git a/fifth-system/darkcore-channel/deployment-guide-for-zhizhi.md b/fifth-system/darkcore-channel/deployment-guide-for-zhizhi.md index 10837b87..52b4b6d2 100644 --- a/fifth-system/darkcore-channel/deployment-guide-for-zhizhi.md +++ b/fifth-system/darkcore-channel/deployment-guide-for-zhizhi.md @@ -435,7 +435,10 @@ jobs: key: ${{ secrets.QQ_SVR_SV_KEY }} script: | cd /opt/qiuqiu/app - git pull origin main 2>/dev/null || git clone https://github.com/zhizhi200271/guanghu-zhizhi.git . + # 如果仓库是私有的,使用token认证 + git pull origin main 2>/dev/null || \ + git clone https://github.com/zhizhi200271/guanghu-zhizhi.git . 2>/dev/null || \ + echo "⚠️ 如果仓库是私有的,请在服务器配置git credential或使用SSH clone" npm install --production # 写入环境变量 diff --git a/scripts/task-tree-manager.js b/scripts/task-tree-manager.js index ba92a67c..314710e7 100644 --- a/scripts/task-tree-manager.js +++ b/scripts/task-tree-manager.js @@ -185,7 +185,7 @@ function step(opts) { task.steps.push(newStep); task.progress.total_steps = task.steps.length; - task.progress.percentage = `${Math.round((task.progress.completed_steps / task.progress.total_steps) * 100)}%`; + task.progress.percentage = task.progress.total_steps > 0 ? `${Math.round((task.progress.completed_steps / task.progress.total_steps) * 100)}%` : '0%'; task.progress.last_activity = now; task.last_updated = now;