[O] Use commits[-1] as author instead of [0]
This commit is contained in:
parent
953a09b686
commit
01f65d91b5
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ 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 = commits[0]['commit']['author']
|
author = commits[-1]['commit']['author']
|
||||||
|
|
||||||
# Create commit message
|
# Create commit message
|
||||||
title = info["title"].replace('"', '\\"')
|
title = info["title"].replace('"', '\\"')
|
||||||
|
|
Loading…
Reference in a new issue