Skip to content

Commit

Permalink
Handle unfinished workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Nov 17, 2024
1 parent fcdf56d commit b1e930a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lazy_github/models/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lazy_github/ui/widgets/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b1e930a

Please sign in to comment.