From 20d7e02a75a2c74e268ed88084af5ec3903dfcef Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Sat, 8 Aug 2026 12:30:49 +0800 Subject: [PATCH] fix(ci): treat skipped status as success in auto-approve check When a backend PR does not touch frontend files, Frontend Lint is skipped. The auto-approve scanner treated skipped as not-success, causing the PR to never be auto-approved or merged. Fix: check_required_contexts now accepts both success and skipped. --- scripts/ci/pr_auto_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/pr_auto_scan.py b/scripts/ci/pr_auto_scan.py index 6bef46da2..69699c7dc 100644 --- a/scripts/ci/pr_auto_scan.py +++ b/scripts/ci/pr_auto_scan.py @@ -75,7 +75,7 @@ def check_required_contexts(token, repo, sha, contexts): for ctx in contexts: state = statuses.get(ctx, "pending") - if state != "success": + if state not in ("success", "skipped"): all_success = False if state == "pending": any_pending = True -- 2.54.0