From 21aff96eee1890dfec4138d718d02f703bf91173 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Thu, 12 Sep 2019 16:03:27 +0900 Subject: [PATCH] Fix author email and name for scheduled jobs --- create-pull-request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create-pull-request.py b/create-pull-request.py index 2fe558b..746da66 100755 --- a/create-pull-request.py +++ b/create-pull-request.py @@ -43,8 +43,8 @@ def pr_branch_exists(repo, branch): def get_head_author(github_event): if 'schedule' in github_event: - email=os.environ['GITHUB_ACTOR'] - name=os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com' + email = os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com' + name = os.environ['GITHUB_ACTOR'] else: email = "{head_commit[author][email]}".format(**github_event) name = "{head_commit[author][name]}".format(**github_event)