INNER CODE UNIT · Python

issue_labels

dotnet/sdk · .github/scripts/check_vendored_files.py:92

    def issue_labels(self) -> list[str]:
        """Labels applied to this entry's drift issues, sync label first."""
        if not isinstance(self.area_labels, list):
            raise ValueError(f"{self.id}: area_labels must be a list.")
        return [ISSUE_LABEL, *self.area_labels]


def load_manifest() -> list[Entry]:
    with MANIFEST_PATH.open("r", encoding="utf-8") as f:
        data = json.load(f)
    default_area_labels = data.get("default_area_labels", [])
    return [Entry.from_dict(e, default_area_labels) for e in data["entries"]]


# ---------- validation ----------

def validate(entries: list[Entry]) -> int:
    errors: list[str] = []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…