You've already forked wakapi-readme-stats
Fake stats committer
I need to push this commit to test the activity on my own README to see if it works. I am using the same general principle as the activity tracker repo, I just had to figure out how to convert that to pygithub.
This commit is contained in:
4
main.py
4
main.py
@@ -489,7 +489,9 @@ if __name__ == '__main__':
|
|||||||
new_readme = generate_new_readme(stats=waka_stats, readme=rdmd)
|
new_readme = generate_new_readme(stats=waka_stats, readme=rdmd)
|
||||||
if new_readme != rdmd:
|
if new_readme != rdmd:
|
||||||
repo.update_file(path=contents.path, message='Updated with Dev Metrics',
|
repo.update_file(path=contents.path, message='Updated with Dev Metrics',
|
||||||
content=new_readme, sha=contents.sha, branch='master')
|
content=new_readme, sha=contents.sha, branch='master',
|
||||||
|
committer=g.InputGitAuthor("readme-bot",
|
||||||
|
"readme-bot@example.com"))
|
||||||
print("Readme updated")
|
print("Readme updated")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|||||||
Reference in New Issue
Block a user