45
I made a program that can manipulate GitHub activity
disclaimer: I made this project with the aim of having fun and to learn to automate things using the Python language
Have you ever seen the activity timeline on someone's GitHub profile is very green and looks very active and consistent?
Do you want to make your GitHub profile very consistent even though it has been less green in the past?
To this :

take it easy, I have a solution, you can use a program that I made using Python 3 language, by using this script you can modify the timeline of your activities in the past until now to be very green and consistent.
repository link : GitHub Activity Generator
total_day = 366 #total days back
commit_frequency = 10 #commit time per day
repo_link = "https://github.com/aliifam/github-activity-generator.git"
This simple program basically uses a nested while loop, the first loop to move from day to day and the loop inside to do several commits in one day, then in the commit date manipulation this program uses the python datetime module and to switch days using the timedelta function with the parameter number of days which keeps decreasing with every iteration.
while tl > 0:
ct = commit_frequency
while ct > 0:
f = open("commit.txt", "a+")
l_date = now + datetime.timedelta(days=-pointer)
formatdate = l_date.strftime("%Y-%m-%d")
f.write(f"commit ke {ctr}: {formatdate}\n")
f.close()
os.system("git add .")
os.system(f"git commit --date=\"{formatdate} 12:15:10\" -m \"commit ke {ctr}\"")
print(f"commit ke {ctr}: {formatdate}")
ct-=1
ctr+=1
pointer+=1
tl-=1
very simple right?
you can see the complete script in here
thank you for reading my sari article, if there are suggestions, criticisms or questions I am very open to it, please use the comments column
45