Skip to content

Issue

🛈 DocStrings

Source code in src/githarbor/core/models.py
@dataclass
class Issue:
    number: int
    """Unique identifier for the issue."""
    title: str
    """Title of the issue."""
    description: str = ""
    """Description of the issue."""
    state: str = "open"
    """State of the issue."""
    author: User | None = None
    """User who created the issue."""
    assignee: User | None = None
    """User who is assigned to the issue."""
    labels: list[Label] = field(default_factory=list)
    """List of labels attached to the issue."""
    created_at: datetime | None = None
    """Date and time when the issue was created."""
    updated_at: datetime | None = None
    """Date and time when the issue was last updated."""
    closed_at: datetime | None = None
    """Date and time when the issue was closed."""
    closed: bool = False
    """Indicates if the issue is closed."""
    comments_count: int = 0
    """Number of comments."""
    url: str | None = None
    """URL to the issue."""
    milestone: str | None = None
    """Associated milestone."""

assignee class-attribute instance-attribute

assignee: User | None = None

User who is assigned to the issue.

author class-attribute instance-attribute

author: User | None = None

User who created the issue.

closed class-attribute instance-attribute

closed: bool = False

Indicates if the issue is closed.

closed_at class-attribute instance-attribute

closed_at: datetime | None = None

Date and time when the issue was closed.

comments_count class-attribute instance-attribute

comments_count: int = 0

Number of comments.

created_at class-attribute instance-attribute

created_at: datetime | None = None

Date and time when the issue was created.

description class-attribute instance-attribute

description: str = ''

Description of the issue.

labels class-attribute instance-attribute

labels: list[Label] = field(default_factory=list)

List of labels attached to the issue.

milestone class-attribute instance-attribute

milestone: str | None = None

Associated milestone.

number instance-attribute

number: int

Unique identifier for the issue.

state class-attribute instance-attribute

state: str = 'open'

State of the issue.

title instance-attribute

title: str

Title of the issue.

updated_at class-attribute instance-attribute

updated_at: datetime | None = None

Date and time when the issue was last updated.

url class-attribute instance-attribute

url: str | None = None

URL to the issue.

:fa-brands-github: Show source on GitHub