Skip to content

WorkflowRun

🛈 DocStrings

Source code in src/githarbor/core/models.py
@dataclass
class WorkflowRun:
    id: str
    """Unique identifier for the workflow run."""
    name: str
    """Name of the workflow run."""
    workflow_id: str
    """ID of the parent workflow."""
    status: str
    """Current status of the workflow run."""
    conclusion: str | None
    """Final conclusion of the workflow run."""
    branch: str | None = None
    """Branch the workflow was run on."""
    commit_sha: str | None = None
    """SHA of the commit that triggered the workflow."""
    url: str | None = None
    """URL to view the workflow run."""
    created_at: datetime | None = None
    """Date and time when the workflow run was created."""
    updated_at: datetime | None = None
    """Date and time when the workflow run was last updated."""
    started_at: datetime | None = None
    """Date and time when the workflow run started."""
    completed_at: datetime | None = None
    """Date and time when the workflow run completed."""
    run_number: int | None = None
    """Sequential run number."""
    jobs_count: int | None = None
    """Total jobs count."""
    logs_url: str | None = None
    """Logs URL."""

branch class-attribute instance-attribute

branch: str | None = None

Branch the workflow was run on.

commit_sha class-attribute instance-attribute

commit_sha: str | None = None

SHA of the commit that triggered the workflow.

completed_at class-attribute instance-attribute

completed_at: datetime | None = None

Date and time when the workflow run completed.

conclusion instance-attribute

conclusion: str | None

Final conclusion of the workflow run.

created_at class-attribute instance-attribute

created_at: datetime | None = None

Date and time when the workflow run was created.

id instance-attribute

id: str

Unique identifier for the workflow run.

jobs_count class-attribute instance-attribute

jobs_count: int | None = None

Total jobs count.

logs_url class-attribute instance-attribute

logs_url: str | None = None

Logs URL.

name instance-attribute

name: str

Name of the workflow run.

run_number class-attribute instance-attribute

run_number: int | None = None

Sequential run number.

started_at class-attribute instance-attribute

started_at: datetime | None = None

Date and time when the workflow run started.

status instance-attribute

status: str

Current status of the workflow run.

updated_at class-attribute instance-attribute

updated_at: datetime | None = None

Date and time when the workflow run was last updated.

url class-attribute instance-attribute

url: str | None = None

URL to view the workflow run.

workflow_id instance-attribute

workflow_id: str

ID of the parent workflow.

:fa-brands-github: Show source on GitHub