fix(datasheet): use shuttle name from config

also, dynamically figure out the repo URL (instead of using an hardcoded value)
This commit is contained in:
Uri Shaked
2023-07-30 09:40:16 +03:00
parent e56503e9c3
commit 6034820170
4 changed files with 20 additions and 11 deletions
+6 -1
View File
@@ -2,6 +2,7 @@ import base64
from urllib.parse import urlparse
import logging
import requests
import git
import os
import errno
@@ -70,7 +71,7 @@ def split_git_url(url):
def get_latest_action_url(url, directory):
def get_latest_action_url(url):
logging.debug(url)
user_name, repo = split_git_url(url)
@@ -99,3 +100,7 @@ def get_latest_action_url(url, directory):
page_url = get_most_recent_action_page(commits, runs['workflow_runs'])
return page_url
def get_first_remote(repo: git.Repo) -> str:
return list(repo.remotes[0].urls)[0]