mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
commit
f0da6f04a8
1 changed files with 2 additions and 2 deletions
|
@ -462,9 +462,9 @@ async def github(request):
|
|||
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"]["login"]
|
||||
commit_author = request.json["commit"]["committer"]["name"]
|
||||
else:
|
||||
commit_author = request.json["commit"]["author"]["login"]
|
||||
commit_author = request.json["commit"]["author"]["name"]
|
||||
branches = ", ".join((x["name"] for x in request.json["branches"]))
|
||||
|
||||
if state not in ("success", "pending"):
|
||||
|
|
Loading…
Reference in a new issue