[F] Fix override author
This commit is contained in:
parent
0aa0a76151
commit
407fcd4987
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Fetch commit information
|
# Fetch commit information
|
||||||
commits = http.get(f'https://api.github.com/repos/{upstream}/pulls/{pr}/commits').json()
|
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
|
# Create commit message
|
||||||
title = info["title"].replace('"', '\\"')
|
title = info["title"].replace('"', '\\"')
|
||||||
|
|
Loading…
Reference in a new issue