webhooks: Use author's name to format Git push messages.

We now use the name of the author of a commit as opposed to the
committer to format Git messages with multiple committers.

Part of #3968.
Follow-up to #4006.
This commit is contained in:
Eeshan Garg
2017-04-25 18:04:07 -02:30
parent 18f2a7428f
commit af69faafc9
3 changed files with 3 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ def get_push_tags_body(payload):
def get_push_commits_body(payload):
# type: (Dict[str, Any]) -> Text
commits_data = [{
'name': commit['committer']['username'],
'name': commit['author']['username'],
'sha': commit['id'],
'url': commit['url'],
'message': commit['message']