Skip to content

Commit

Permalink
[F] Fix override author
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Jul 15, 2023
1 parent 0aa0a76 commit 407fcd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/accept_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def copy_comment():

# Fetch commit information
commits = http.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}/commits').json()
author = json.loads(os.environ.get("override_author")) or commits[-1]['commit']['author']
override_author = os.environ.get("override_author")
author = json.loads(override_author) if override_author else commits[-1]['commit']['author']

# Create commit message
title = info["title"].replace('"', '\\"')
Expand Down

0 comments on commit 407fcd4

Please sign in to comment.