fix: resolve CI/CD issues - fixed workflow model, timer API, and type annotations
Some checks failed
DevDash CLI CI / test (push) Failing after 12s
Some checks failed
DevDash CLI CI / test (push) Failing after 12s
- src/ui/components/cards.py: Changed WorkflowCard to use WorkflowRunModel with correct attributes - src/models/__init__.py: Added WorkflowRunModel to exports - src/ui/screens/dashboard.py: Fixed timer API for Textual 0.52 compatibility - src/ui/components/loading.py: Renamed _animate to _spin for signature override - src/git/status.py: Added type annotation 'str | None' to remote_name variable
This commit is contained in:
@@ -91,7 +91,7 @@ def get_commit_hash(cwd: Path | None = None) -> str:
|
||||
def _get_commit_info_impl(cwd: Path | None = None) -> tuple[str, str, datetime]:
|
||||
"""Get current commit info - internal implementation."""
|
||||
message = run_git_command("log", "-1", "--format=%s", cwd=cwd)
|
||||
author_name = run_git_command("log", "-1", "format=%an", cwd=cwd)
|
||||
author_name = run_git_command("log", "-1", "--format=%an", cwd=cwd)
|
||||
author_date_str = run_git_command("log", "-1", "--format=%ai", cwd=cwd)
|
||||
|
||||
try:
|
||||
@@ -159,7 +159,7 @@ def _get_remote_status_impl(cwd: Path | None = None) -> tuple[int, int, str | No
|
||||
else:
|
||||
ahead, behind = 0, 0
|
||||
|
||||
remote_name = run_git_command("rev-parse", "--abbrev-ref", "@{upstream}", cwd=cwd)
|
||||
remote_name: str | None = run_git_command("rev-parse", "--abbrev-ref", "@{upstream}", cwd=cwd)
|
||||
if remote_name:
|
||||
remote_name = remote_name.split("/")[0] if "/" in remote_name else remote_name
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user