Skip to content

Commit

Permalink
v9.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GitRon committed Feb 28, 2024
1 parent 628a792 commit 83416f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ambient_toolbox/gitlab/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import sys
from difflib import ndiff
from http import HTTPStatus
from typing import Optional

import httpx

Expand Down Expand Up @@ -55,7 +56,7 @@ def get_latest_target_branch_commit_sha(self) -> str:
)
return result.stdout.decode("utf-8").strip()

def get_pipeline_id_by_commit_sha(self, sha: str) -> int | None:
def get_pipeline_id_by_commit_sha(self, sha: str) -> Optional[int]:
pipeline_url = f"{self.pipelines_url_with_token}&sha={sha}"
response = httpx.get(pipeline_url)
status_code = response.status_code
Expand Down

0 comments on commit 83416f0

Please sign in to comment.