mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] bad key path
This commit is contained in:
parent
f0da6f04a8
commit
c1fea03faf
1 changed files with 1 additions and 1 deletions
|
@ -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"):
|
||||||
|
|
Loading…
Reference in a new issue