Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
707 B
0
Indexable
Never
UPDATE: Código para rodar commits automatizados e nada suspeitos com Python
import subprocess
import time
import random


def make_the_commit(commit_number):
    subprocess.call(['git', 'add', f'src/{commit_number}_challenge.sql'])
    subprocess.call(['git', 'commit', '-m', f'Made the task {commit_number}.'])
    subprocess.call(['git', 'push'])


print("Starting the commits...")

for i in range(2, 31):
    # Make each commit in a random time between 5 and 10 minutes.
    time.sleep(random.randint(300, 600))
    # Make that i always has 2 digits like 02, 03, 04, etc.
    i = str(i).zfill(2)
    make_the_commit(i)
    print("Made the commit number " + str(i) + " done!")

print('All commits done!')
Leave a Comment