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:
Aaron Meese
2020-08-10 07:32:20 -05:00
parent 2ccd2bd4d6
commit b4ab34377c

View File

@@ -489,7 +489,9 @@ if __name__ == '__main__':
new_readme = generate_new_readme(stats=waka_stats, readme=rdmd)
if new_readme != rdmd:
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")
except Exception as e:
traceback.print_exc()