From 7f8c648bb7aa68a64ccb37273e5cfa8f39feec29 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Fri, 17 Jul 2026 11:34:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8Dauto-merge=20bash?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=BC=95=E5=8F=B7=E4=B8=8D=E9=97=AD=E5=90=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/auto-merge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/auto-merge.yml b/.gitea/workflows/auto-merge.yml index 1b95641fd..ab4738113 100644 --- a/.gitea/workflows/auto-merge.yml +++ b/.gitea/workflows/auto-merge.yml @@ -36,7 +36,7 @@ jobs: # 判断是否纯前端改动 FILES=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \ "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/files?limit=300" \ - | python3 -c "import sys,json; [print(f['filename']) for f in json.load(sys.stdin)]) + | python3 -c "import sys,json; [print(f['filename']) for f in json.load(sys.stdin)]") TOTAL=$(echo "$FILES" | grep -cv '^$' || true) FRONTEND_COUNT=$(echo "$FILES" | grep -c '^apps/web/' || true) BACKEND_COUNT=$((TOTAL - FRONTEND_COUNT))