Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions scripts/prepare_auto_optimization_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,22 @@ def _is_completed_low_risk_task(action: dict[str, Any], repo_root: Path) -> bool
repo_name = repo_root.name

if repo_name == "CryptoLeaderRotation":
if "shadow/challenger build generation" in title:
if "shadow/challenger build generation" in title or "shadow build" in title:
workflow = _read_text(repo_root / ".github" / "workflows" / "monthly_publish.yml")
return "run_monthly_shadow_build.py" in workflow
if "deterministic tie-break behavior" in title:
if "tie-break" in title or "tie break" in title:
readme = _read_text(repo_root / "README.md")
runbook = _read_text(repo_root / "docs" / "operator_runbook.md")
return (
"Monthly ranking tie-break rule for `core_major` live exports:" in readme
and "deterministic tie-break" in runbook
)

if repo_name == "BinancePlatform" and "zero-trade diagnostics" in title:
if repo_name == "BinancePlatform" and (
"zero-trade diagnostics" in title
or "diagnostic reporting for no-trade months" in title
or "no-trade months" in title
):
monthly_report = _read_text(repo_root / "scripts" / "run_monthly_report_bundle.py")
return (
"No explicit gating or no-trade reasons were recorded this month." in monthly_report
Expand Down