From b4ab34377c0311ae6cddbe5b5e62668b8d97edc9 Mon Sep 17 00:00:00 2001 From: Aaron Meese Date: Mon, 10 Aug 2020 07:32:20 -0500 Subject: [PATCH] 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. --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 28e3382..de8c3f3 100644 --- a/main.py +++ b/main.py @@ -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()