INNER CODE UNIT · Python

load_label_definitions

Steam-Headless/docker-steam-headless · .github/scripts/manage-compatibility-report.py:160

def load_label_definitions(repo_root):
    labels_path = os.path.join(repo_root, ".github", "config", "labels.json")
    if os.path.exists(labels_path):
        with open(labels_path, encoding="utf-8") as f:
            return json.load(f)
    fallback_path = os.path.join(repo_root, ".github", "labels.json")
    if os.path.exists(fallback_path):
        with open(fallback_path, encoding="utf-8") as f:
            return json.load(f)
    return []


def handle_issue_comment(owner, repo, issue_number, token):
    api_base = f"https://api.github.com/repos/{owner}/{repo}"
    issue = github_api_request(f"{api_base}/issues/{issue_number}", token=token)
    labels = [lbl["name"] for lbl in issue.get("labels", [])]

    if "type:compatibility" in labels and issue.get("state") == "closed":

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…