Skip to content

Commit

Permalink
Automated commit -> added return statement to parser in jatosapi
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Sep 23, 2024
1 parent 83daf39 commit b1087d0
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions jatosAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,16 @@ def move_txt(txt_files):




def 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 push(toke):
#use the folder name as task
task = os.path.basename(os.getcwd())

subprocess.run(['git', 'config', 'user.email', '[email protected]'])
subprocess.run(['git', 'remote', 'set-url', 'origin', f'https://miloswrath:{toke}@github.com/HBClab/{task}'])
subprocess.run(['git', 'config', 'user.name', 'miloswrath'])
subprocess.run(['git', 'add', '.'])
subprocess.run(['git', 'commit', '-m', 'Automated Commit -> New Data'])
subprocess.run(['git', 'push', 'origin', 'main'])

def main():
args = parse_cmd()
Expand Down

0 comments on commit b1087d0

Please sign in to comment.