diff --git a/lazy_github/models/github.py b/lazy_github/models/github.py index 689d1cb..0da4213 100644 --- a/lazy_github/models/github.py +++ b/lazy_github/models/github.py @@ -164,7 +164,7 @@ class WorkflowRun(BaseModel): run_number: int head_branch: str status: str - conclusion: str + conclusion: str | None = None event: str actor: User triggering_actor: User diff --git a/lazy_github/ui/widgets/workflows.py b/lazy_github/ui/widgets/workflows.py index b5bd9d9..301b7be 100644 --- a/lazy_github/ui/widgets/workflows.py +++ b/lazy_github/ui/widgets/workflows.py @@ -15,7 +15,7 @@ def workflow_to_cell(workflow: Workflow) -> tuple[str | int, ...]: def workflow_run_to_cell(run: WorkflowRun) -> tuple[str | int, ...]: - return (run.created_at.strftime("%Y-%m-%d %H:%M"), run.conclusion, run.name, run.display_title) + return (run.created_at.strftime("%Y-%m-%d %H:%M"), run.conclusion or run.status, run.name, run.display_title) class AvailableWorkflowsContainers(Container):