-
Notifications
You must be signed in to change notification settings - Fork 16
/
make_commits.py
executable file
·30 lines (27 loc) · 780 Bytes
/
make_commits.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import random
import os
# zalgoification stolen from a code golf example, could I format this better? yes. will I? no.
q=lambda z:''.join([v,v+''.join(random.choice(list(map(chr,range(768,815))))for i in range(int(random.normalvariate(10,5))))][v.isalpha()]for v in z)
# these messages taken from a list of most common commit messages
messages=[
"initial commit",
"update readme.md",
"update",
"first commit",
"dummy",
"updated readme",
"pi push",
"create readme.md",
"fix",
"cleanup",
"test",
"typo",
"fuck",
"wip",
"bump version",
"updates"
]
# I couldn't get the bash for loop to run in the github action, so... here we are.
for n in range(random.randint(1, 10)):
message = q(random.choice(messages))
os.system(f'git commit -m "{message}" --allow-empty')