[fix] bad key path

This commit is contained in:
Kayou 2020-06-15 13:26:52 +02:00 committed by GitHub
parent c1fea03faf
commit 007f1d8a9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -461,8 +461,8 @@ async def github(request):
user = request.json["sender"]["login"]
url = request.json["commit"]["html_url"]
commit_message = request.json["commit"]["commit"]["message"].replace("\n", " ")
if request.json["commit"]["committer"]:
commit_author = request.json["commit"]["committer"]["name"]
if request.json["commit"]["commit"]["committer"]:
commit_author = request.json["commit"]["commit"]["committer"]["name"]
else:
commit_author = request.json["commit"]["commit"]["author"]["name"]
branches = ", ".join((x["name"] for x in request.json["branches"]))