Skip to content

Workflow

🛈 DocStrings

Source code in src/githarbor/core/models.py
@dataclass
class Workflow:
    id: str
    """Unique identifier for the workflow."""
    name: str
    """Name of the workflow."""
    path: str
    """Path to the workflow file in the repository."""
    state: str
    """State of the workflow."""
    created_at: datetime | None = None
    """Date and time when the workflow was created."""
    updated_at: datetime | None = None
    """Date and time when the workflow was last updated."""
    description: str = ""
    """Description of the workflow."""
    triggers: list[str] = field(default_factory=list)
    """List of triggers that can start the workflow."""
    disabled: bool = False
    """Indicates if the workflow is disabled."""
    last_run_at: datetime | None = None
    """Date and time when the workflow was last run."""
    badge_url: str | None = None
    """URL to the badge image for the workflow."""
    definition: str | None = None
    """Content of the workflow definition file."""
    runs_count: int = 0
    """Total number of runs."""
    success_count: int = 0
    """Successful runs count."""

badge_url class-attribute instance-attribute

badge_url: str | None = None

URL to the badge image for the workflow.

created_at class-attribute instance-attribute

created_at: datetime | None = None

Date and time when the workflow was created.

definition class-attribute instance-attribute

definition: str | None = None

Content of the workflow definition file.

description class-attribute instance-attribute

description: str = ''

Description of the workflow.

disabled class-attribute instance-attribute

disabled: bool = False

Indicates if the workflow is disabled.

id instance-attribute

id: str

Unique identifier for the workflow.

last_run_at class-attribute instance-attribute

last_run_at: datetime | None = None

Date and time when the workflow was last run.

name instance-attribute

name: str

Name of the workflow.

path instance-attribute

path: str

Path to the workflow file in the repository.

runs_count class-attribute instance-attribute

runs_count: int = 0

Total number of runs.

state instance-attribute

state: str

State of the workflow.

success_count class-attribute instance-attribute

success_count: int = 0

Successful runs count.

triggers class-attribute instance-attribute

triggers: list[str] = field(default_factory=list)

List of triggers that can start the workflow.

updated_at class-attribute instance-attribute

updated_at: datetime | None = None

Date and time when the workflow was last updated.

:fa-brands-github: Show source on GitHub