From c512f24b6ed67c2a1f32e7739d78dca8e68dee65 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 2 Apr 2026 16:10:44 +0200 Subject: [PATCH] Fix scan action to allow linter updates to PRs (#730) Co-authored-by: UltralyticsAssistant --- actions/scan_prs.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/actions/scan_prs.py b/actions/scan_prs.py index 8895e35..0af1041 100644 --- a/actions/scan_prs.py +++ b/actions/scan_prs.py @@ -185,10 +185,14 @@ def run(): merged = 0 for pr in json.loads(pr_list.stdout): + # Filter by title: must be a GitHub Actions bump PR + title = pr.get("title", "").lower() + if "bump" not in title or "/.github/workflows" not in title: + continue + + # Require at least one workflow/action file paths = [f["path"] for f in (pr.get("files") or [])] - if not paths or not all( - p.startswith(".github/workflows/") or p.endswith(("action.yml", "action.yaml")) for p in paths - ): + if not any(p.startswith(".github/workflows/") or p.endswith(("action.yml", "action.yaml")) for p in paths): print(" ⏭️ Skipped (non-action files)") continue