[fix] bad key path

This commit is contained in:
Laurent Peuch 2020-06-14 23:27:05 +02:00
parent f0da6f04a8
commit c1fea03faf

View file

@ -464,7 +464,7 @@ async def github(request):
if request.json["commit"]["committer"]: if request.json["commit"]["committer"]:
commit_author = request.json["commit"]["committer"]["name"] commit_author = request.json["commit"]["committer"]["name"]
else: else:
commit_author = request.json["commit"]["author"]["name"] commit_author = request.json["commit"]["commit"]["author"]["name"]
branches = ", ".join((x["name"] for x in request.json["branches"])) branches = ", ".join((x["name"] for x in request.json["branches"]))
if state not in ("success", "pending"): if state not in ("success", "pending"):