INNER CODE UNIT · Python

ensure_labels

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

def ensure_labels():
    for t in NIGHTLY_TARGETS:
        try:
            gh(f"/repos/{REPO}/labels", method="POST", retry=False,
               body={"name": store.target_label(t), "color": "1d76db",
                     "description": f"Nightly {t} target"})
        except urllib.error.HTTPError:
            pass  # 422 = already exists
    for name, color, desc in [
        (store.LABEL, "b60205", "Filed by the nightly examples triage"),
        (store.LABEL_MUTE, "ededed", "Triage will not touch this issue"),
        (store.LABEL_UNCONFIRMED, "d4c5f9", "Retry did not run; not double-confirmed"),
    ]:
        try:
            gh(
                f"/repos/{REPO}/labels",
                method="POST",
                body={"name": name, "color": color, "description": desc},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…