From b162126a1425834a3c613a38fa14f86851c5a1dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Mar 2026 06:58:02 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20API=20URL=20?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=92=8C=E6=B7=BB=E5=8A=A0=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=20GITHUB=5FTOKEN=20=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= 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> --- .github/workflows/zhuyuan-daily-inspection.yml | 1 + scripts/agent-checkin.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/zhuyuan-daily-inspection.yml b/.github/workflows/zhuyuan-daily-inspection.yml index a1114c0d..404db1e2 100644 --- a/.github/workflows/zhuyuan-daily-inspection.yml +++ b/.github/workflows/zhuyuan-daily-inspection.yml @@ -17,6 +17,7 @@ jobs: run: node scripts/zhuyuan-inspection.js - name: 推送工单到Notion env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NOTION_TOKEN_BINGSUO: ${{ secrets.NOTION_TOKEN_BINGSUO }} NOTION_TOKEN_ZHIZHI: ${{ secrets.NOTION_TOKEN_ZHIZHI }} WORKORDER_DB_BINGSUO: ${{ secrets.WORKORDER_DB_BINGSUO }} diff --git a/scripts/agent-checkin.js b/scripts/agent-checkin.js index 56e49e76..6509b50f 100644 --- a/scripts/agent-checkin.js +++ b/scripts/agent-checkin.js @@ -68,7 +68,7 @@ function githubApi(urlPath) { // ── 获取 workflow 今日最新 run ──────────────────────────────────────────── async function getLatestRun(workflowFile) { - const urlPath = `/repos/${REPO}/actions/workflows/${encodeURIComponent(workflowFile)}/runs?per_page=1&created=>=${today}`; + const urlPath = `/repos/${REPO}/actions/workflows/${encodeURIComponent(workflowFile)}/runs?per_page=1&created=${encodeURIComponent('>=' + today)}`; const data = await githubApi(urlPath); if (!data || !data.workflow_runs || data.workflow_runs.length === 0) { return null;