Skip to content

Commit

Permalink
bring back typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Apr 5, 2024
1 parent 90cf8a4 commit 5244a98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/docker_publisher_osparc_services/http_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ async def async_client(timeout: float = 30, **kwargs) -> AsyncIterator[AsyncClie
yield client


async def github_did_last_repo_run_pass(repo_model, branch_hash: str) -> bool:
async def github_did_last_repo_run_pass(
repo_model: RepoModel, branch_hash: str
) -> bool:
async with async_client() as client:
repo_path = repo_model.repo.split("github.com/")[1].replace(".git", "")
url = f"https://api.github.com/repos/{repo_path}/actions/runs"
Expand Down

0 comments on commit 5244a98

Please sign in to comment.