This commit is contained in:
Eddie Cohen
2023-04-15 11:15:18 -04:00
parent 99c4f93ee3
commit 71abd6f2e4
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ from config import Config
cfg = Config()
def clone_repository(repo_url, clone_path):
"""Clone a github repository locally"""
split_url = repo_url.split("//")
@@ -10,4 +11,4 @@ def clone_repository(repo_url, clone_path):
git.Repo.clone_from(auth_repo_url, clone_path)
result = f"""Cloned {repo_url} to {clone_path}"""
return result
return result

View File

@@ -55,7 +55,7 @@ class Config(metaclass=Singleton):
self.use_brian_tts = False
self.use_brian_tts = os.getenv("USE_BRIAN_TTS")
self.github_api_key = os.getenv("GITHUB_API_KEY")
self.github_username = os.getenv("GITHUB_USERNAME")