From f00d67061e20b007c3cbc5e977c9d9251b8eb6ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 09:30:51 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E5=AE=A1?= =?UTF-8?q?=E6=9F=A5=E5=8F=8D=E9=A6=88=EF=BC=9A=E6=94=B9=E8=BF=9B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=97=A5=E5=BF=97=E3=80=81=E5=B8=B8=E9=87=8F=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E3=80=81=E7=B1=BB=E5=9E=8B=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- README.md | 4 ++-- scripts/update-readme-bulletin.js | 5 +++-- scripts/zhuyuan-issue-reply.js | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8bcff6de..68539745 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ | 时间 | 检查项 | 状态 | |------|--------|------| -| 03-09 17:16 | 🔧 系统更新: `scripts/` | 铸渊 (Copilot) | -| 03-09 17:15 | 🔧 系统更新: `.github/` | 铸渊 (Copilot) | +| 03-09 17:29 | 🔧 系统更新: `.github/` | 铸渊 (Copilot) | +| 03-09 17:29 | 🔧 系统更新: `scripts/` | 铸渊 (Copilot) | | 03-09 17:15 | 🔧 系统更新: `docs/` | 铸渊 (Copilot) | | 03-09 17:15 | 🔧 系统更新: `persona-brain-db/` | 铸渊 (Copilot) | | 03-09 16:56 | ✅ 每日巡检 ✅ 通过 | 冰朔 | diff --git a/scripts/update-readme-bulletin.js b/scripts/update-readme-bulletin.js index 200fd56a..72f50f85 100644 --- a/scripts/update-readme-bulletin.js +++ b/scripts/update-readme-bulletin.js @@ -34,6 +34,7 @@ const COLLABORATORS_PATH = path.join(__dirname, '..', '.github', 'brain', 'colla const MAX_BINGSHUO_ENTRIES = 15; const MAX_COLLAB_ENTRIES = 20; const MAX_GIT_LOG_COMMITS = 30; +const BINGSHUO_USERNAME = 'qinfendebingshuo'; /* ── 公告区标记 ─────────────────────────── */ const MARKERS = { @@ -86,7 +87,7 @@ const SYSTEM_PREFIXES = ['scripts', 'docs', '.github', 'persona-brain-db']; function formatTime(ts) { if (!ts) return '—'; const d = new Date(ts); - if (isNaN(d.getTime())) return String(ts).substring(0, 10); + if (isNaN(d.getTime())) return typeof ts === 'string' ? ts.substring(0, Math.min(10, ts.length)) : '—'; const fmt = new Intl.DateTimeFormat('zh-CN', { timeZone: 'Asia/Shanghai', month: '2-digit', @@ -583,7 +584,7 @@ async function sendAlertEmails(bingshuoIssues, collabIssuesByDev) { // 冰朔邮件 if (bingshuoIssues.length > 0) { const bingshuoEmail = process.env.BINGSHUO_EMAIL - || await fetchUserEmail('qinfendebingshuo') + || await fetchUserEmail(BINGSHUO_USERNAME) || null; if (bingshuoEmail) { diff --git a/scripts/zhuyuan-issue-reply.js b/scripts/zhuyuan-issue-reply.js index aa112dc0..f5925ace 100644 --- a/scripts/zhuyuan-issue-reply.js +++ b/scripts/zhuyuan-issue-reply.js @@ -19,7 +19,8 @@ try { try { collaborators = JSON.parse(fs.readFileSync('.github/brain/collaborators.json', 'utf8')); -} catch { +} catch (err) { + console.log('⚠️ collaborators.json 读取失败,使用空列表:', err.message); collaborators = []; }