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
c1fea03faf
commit
007f1d8a9f
1 changed files with 2 additions and 2 deletions
|
@ -461,8 +461,8 @@ async def github(request):
|
||||||
user = request.json["sender"]["login"]
|
user = request.json["sender"]["login"]
|
||||||
url = request.json["commit"]["html_url"]
|
url = request.json["commit"]["html_url"]
|
||||||
commit_message = request.json["commit"]["commit"]["message"].replace("\n", " ")
|
commit_message = request.json["commit"]["commit"]["message"].replace("\n", " ")
|
||||||
if request.json["commit"]["committer"]:
|
if request.json["commit"]["commit"]["committer"]:
|
||||||
commit_author = request.json["commit"]["committer"]["name"]
|
commit_author = request.json["commit"]["commit"]["committer"]["name"]
|
||||||
else:
|
else:
|
||||||
commit_author = request.json["commit"]["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"]))
|
||||||
|
|
Loading…
Reference in a new issue