MCPcopy
hub / github.com/Shpota/github-activity-generator / contribute

Function contribute

contribute.py:58–63  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

56
57
58def contribute(date):
59 with open(os.path.join(os.getcwd(), 'README.md'), 'a') as file:
60 file.write(message(date) + '\n\n')
61 run(['git', 'add', '.'])
62 run(['git', 'commit', '-m', '"%s"' % message(date),
63 '--date', date.strftime('"%Y-%m-%d %H:%M:%S"')])
64
65
66def run(commands):

Callers 1

mainFunction · 0.85

Calls 2

messageFunction · 0.85
runFunction · 0.85

Tested by

no test coverage detected