From 2e4513e7cfbf71027a3b0bb9606a4edee2ab6444 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 1 Sep 2026 07:22:07 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(ci):=20auto=5Fapprove.sh=20context=20?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8C=B9=E9=85=8D=20CI=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=90=8E=20job=20=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci/auto_approve.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/ci/auto_approve.sh b/scripts/ci/auto_approve.sh index 5736898f1..4bfdb4209 100644 --- a/scripts/ci/auto_approve.sh +++ b/scripts/ci/auto_approve.sh @@ -28,15 +28,12 @@ if [ "$SKIP_BACKEND" = "true" ]; then CONTEXTS=("CI/CD Pipeline / Frontend Lint (pull_request)") else CONTEXTS=( - "CI/CD Pipeline / Validate - Code Quality (pull_request)" - "CI/CD Pipeline / Validate - Type Check (mypy) (pull_request)" - "CI/CD Pipeline / Validate - Migration (alembic) (pull_request)" + # CI 优化后 job 名称(2026-08):Code Quality 拆分为 Style+Security,Type Check+Migration 合并为 Python + # 与 pr_auto_scan.py 的 REQUIRED_CONTEXTS_APPROVE 保持一致 + "CI/CD Pipeline / Validate - Style (pull_request)" + "CI/CD Pipeline / Validate - Security (pull_request)" + "CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request)" "CI/CD Pipeline / Frontend Lint (pull_request)" - "CI/CD Pipeline / Unit Tests (pull_request)" - "CI/CD Pipeline / Frontend Unit Tests (pull_request)" - "CI/CD Pipeline / PR Build API Image (pull_request)" - "CI/CD Pipeline / PR Build Web Image (pull_request)" - "CI/CD Pipeline / PR Build Worker Image (pull_request)" ) fi -- 2.54.0 From 6ba826f48b13d4e2aba2286d2af98f3b6f0dbc49 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 1 Sep 2026 07:22:08 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(ci):=20pr=5Fauto=5Fscan.py=20=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E9=97=A8=E7=A6=81=20context=20=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=96=B0=20job=20=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci/pr_auto_scan.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/ci/pr_auto_scan.py b/scripts/ci/pr_auto_scan.py index fc422893e..37626c916 100644 --- a/scripts/ci/pr_auto_scan.py +++ b/scripts/ci/pr_auto_scan.py @@ -303,9 +303,10 @@ def main(): "CI/CD Pipeline / CI Gate (pull_request)", ] REQUIRED_CONTEXTS_APPROVE = [ - "CI/CD Pipeline / Validate - Code Quality (pull_request)", - "CI/CD Pipeline / Validate - Type Check (mypy) (pull_request)", - "CI/CD Pipeline / Validate - Migration (alembic) (pull_request)", + # CI 优化后 job 名称(2026-08):Code Quality 拆分为 Style+Security,Type Check+Migration 合并为 Python + "CI/CD Pipeline / Validate - Style (pull_request)", + "CI/CD Pipeline / Validate - Security (pull_request)", + "CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request)", "CI/CD Pipeline / Frontend Lint (pull_request)", ] FRONTEND_ONLY_CONTEXT = [ -- 2.54.0 From 74d0bfabd43fa51d415b0e2547cdb2f89489e50d Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 1 Sep 2026 07:22:13 +0800 Subject: [PATCH 3/4] =?UTF-8?q?perf(ci):=20pr-auto-scan=20=E9=A2=91?= =?UTF-8?q?=E7=8E=87=2010=20=E5=88=86=E9=92=9F=E9=99=8D=E4=B8=BA=2015=20?= =?UTF-8?q?=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pr-auto-scan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/pr-auto-scan.yml b/.gitea/workflows/pr-auto-scan.yml index f362e74de..9cc92fa27 100644 --- a/.gitea/workflows/pr-auto-scan.yml +++ b/.gitea/workflows/pr-auto-scan.yml @@ -3,7 +3,7 @@ name: PR Auto Scan # 作为短作业模式的兜底,防止事件驱动遗漏 on: schedule: - - cron: "*/10 * * * *" # 每10分钟扫描一次(脚本自带240s墙钟上限,降频减负) + - cron: "*/15 * * * *" # 每15分钟扫描一次(脚本自带240s墙钟上限,降频减负) workflow_dispatch: permissions: -- 2.54.0 From dcf88c89107952950548a6cdd1bef184f9e582d8 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 1 Sep 2026 10:22:13 +0800 Subject: [PATCH 4/4] ci: trigger CI for context fix verification --- scripts/ci/auto_approve.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci/auto_approve.sh b/scripts/ci/auto_approve.sh index 4bfdb4209..c5f50af31 100644 --- a/scripts/ci/auto_approve.sh +++ b/scripts/ci/auto_approve.sh @@ -151,3 +151,4 @@ done echo echo "⏰ 快速检查超时(2分钟),CI尚未完成,退出等待下次触发(workflow_run事件或5分钟定时扫描)" exit 0 +# CI trigger: 1788229333 \ No newline at end of file -- 2.54.0