Skip to content

Commit

Permalink
✨ Add gitlab handling - token
Browse files Browse the repository at this point in the history
  • Loading branch information
angelika233 committed Aug 30, 2024
1 parent cc19fe8 commit ec4cd51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/viadot/orchestration/prefect/tasks/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def clone_repo(
if token:
url = url.replace("https://dev.azure.com", f"https://{token}@dev.azure.com")
url = url.replace("https://github.com", f"https://{token}@github.com")
url = url.replace("gitlab", f"oauth2:{token}@gitlab")

repo_name = url.split("/")[-1].replace(".git", "")
path = kwargs.get("path") or repo_name
Expand Down

0 comments on commit ec4cd51

Please sign in to comment.