From 003a72dc91f5035c878d329648eb1f32d80b0949 Mon Sep 17 00:00:00 2001 From: Cai Shengliang <2014cais01@gmail.com> Date: Wed, 30 Dec 2020 19:03:38 +0800 Subject: [PATCH] feat: use github-actions bot as the committer --- loc.py | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loc.py b/loc.py index a5dac27..8011e1e 100644 --- a/loc.py +++ b/loc.py @@ -96,7 +96,7 @@ class LinesOfCode: def pushChart(self): repo = self.g.get_repo(f"{self.username}/{self.username}") - committer = InputGitAuthor('readme-bot', 'readme-bot@example.com') + committer = InputGitAuthor('readme-bot', '41898282+github-actions[bot]@users.noreply.github.com') with open('bar_graph.png', 'rb') as input_file: data = input_file.read() try: diff --git a/main.py b/main.py index 15893bf..a9f7c60 100644 --- a/main.py +++ b/main.py @@ -498,7 +498,7 @@ if __name__ == '__main__': star_me() rdmd = decode_readme(contents.content) new_readme = generate_new_readme(stats=waka_stats, readme=rdmd) - committer = InputGitAuthor('readme-bot', 'readme-bot@example.com') + committer = InputGitAuthor('readme-bot', '41898282+github-actions[bot]@users.noreply.github.com') if new_readme != rdmd: try: repo.update_file(path=contents.path, message='Updated with Dev Metrics',