INNER CODE UNIT · Python

apply

wolfSSL/wolfssl-examples · .github/scripts/ci_triage.py:535

def apply(eid, observation, issue, ai, state, rows, close_allowed, target):
    """Returns the issue number now tracking this dir, or None."""
    now = datetime.now(timezone.utc).strftime("%Y-%m-%d")
    action, why = store.decide(observation, issue, close_allowed)
    num = (issue or {}).get("number")

    if action == "noop":
        print(f"  {eid}: noop ({why})")
        return num
    if DRY_RUN:
        print(f"  {eid}: WOULD {action} ({why})")
        return num

    body = store.render_body(eid, state, ai, rows, run_url(), now)

    if action == "open":
        body_kw = {
                "title": f"CI: `{eid}` failing in the nightly",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…