InputGitAuthor not an attrribute

I think this is mean to be a separate method when imported like this. At least, that's how it is in the example project I found, so here's to hoping.
This commit is contained in:
Aaron Meese
2020-08-10 08:10:38 -05:00
parent e2b5960e2e
commit 8376e63791

View File

@@ -487,7 +487,7 @@ if __name__ == '__main__':
waka_stats = get_stats(g) waka_stats = get_stats(g)
rdmd = decode_readme(contents.content) rdmd = decode_readme(contents.content)
new_readme = generate_new_readme(stats=waka_stats, readme=rdmd) new_readme = generate_new_readme(stats=waka_stats, readme=rdmd)
committer = g.InputGitAuthor('readme-bot', 'readme-bot@example.com') committer = InputGitAuthor('readme-bot', 'readme-bot@example.com')
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',