| 339 | f"clippy_crates={clippy_s}\ndisk_heavy={heavy_s}\n" |
| 340 | ) |
| 341 | |
| 342 | |
| 343 | def detect(): |
| 344 | base = os.environ.get("BASE_SHA", "").strip() |
| 345 | head = os.environ.get("HEAD_SHA", "").strip() |
| 346 | files = changed_files(base, head) |
| 347 | if files is None: |
| 348 | print("[detect] base/head unresolved; falling back to full workspace.") |
| 349 | return emit("all", [], [], True) |
| 350 | if not files: |
| 351 | return emit("none", [], [], False) |
| 352 | |
| 353 | cross_hits = {f for f in files if is_cross_cutting(f)} |
| 354 | if ROOT_MANIFEST in files: |
| 355 | if root_manifest_change_is_workspace_members_only(base, head): |