Skip to content

Label

🛈 DocStrings

Source code in src/githarbor/core/models.py
@dataclass
class Label:
    name: str
    """Name of the label."""
    color: str = ""  # Hex color code
    """Hex color code for the label."""
    description: str = ""
    """Description of what the label represents."""
    created_at: datetime | None = None
    """Date and time when the label was created."""
    updated_at: datetime | None = None
    """Date and time when the label was last updated."""
    url: str | None = None
    """URL to the label."""

color class-attribute instance-attribute

color: str = ''

Hex color code for the label.

created_at class-attribute instance-attribute

created_at: datetime | None = None

Date and time when the label was created.

description class-attribute instance-attribute

description: str = ''

Description of what the label represents.

name instance-attribute

name: str

Name of the label.

updated_at class-attribute instance-attribute

updated_at: datetime | None = None

Date and time when the label was last updated.

url class-attribute instance-attribute

url: str | None = None

URL to the label.

:fa-brands-github: Show source on GitHub