From 286239780fd391879221e8fccd920bbaab5bf56a Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Mon, 23 Sep 2024 08:55:59 -0500 Subject: [PATCH] Automated commit -> added return statement to parser in jatosapi --- jatosAPI.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/jatosAPI.py b/jatosAPI.py index ddf15f0..6236004 100644 --- a/jatosAPI.py +++ b/jatosAPI.py @@ -228,14 +228,13 @@ def move_txt(txt_files): def push(): - subprocess.run(["git","remote", "set-url", "https://github.com/HBClab/boost-beh-AF.git"]) - subprocess.run(["git", "config", "--global", "user.email", "miloswrath@users.noreply.github.com"]) - subprocess.run(["git", "config", "--global", "user.name", "miloswrath"]) - subprocess.run(["git", "config", "--global", "user.password", "Milocute23"]) - subprocess.run(["git", "add", "-A"]) - subprocess.run(["git", "commit", "-m", "auto commit -> added subject task data"]) - subprocess.run(["git", "push"]) - + import git + repo = git.Repo('./') + repo.git.add('.') + repo.git.commit('-m', 'new data') + origin = repo.remote(name='origin') + origin.push() + return None def main(): args = parse_cmd()