INNER CODE UNIT · Python

run_url

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

def run_url():
    return f"https://github.com/{REPO}/actions/runs/{RUN_ID}"


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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…