Skip to content

Commit 21aff96

Browse files
committed
Fix author email and name for scheduled jobs
1 parent f4703cd commit 21aff96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create-pull-request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def pr_branch_exists(repo, branch):
4343

4444
def get_head_author(github_event):
4545
if 'schedule' in github_event:
46-
email=os.environ['GITHUB_ACTOR']
47-
name=os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com'
46+
email = os.environ['GITHUB_ACTOR'] + '@users.noreply.github.com'
47+
name = os.environ['GITHUB_ACTOR']
4848
else:
4949
email = "{head_commit[author][email]}".format(**github_event)
5050
name = "{head_commit[author][name]}".format(**github_event)

0 commit comments

Comments
 (0)