From ef09593922c007b779a0bb279dc1182ecf258dc7 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sat, 13 Jun 2020 00:29:08 +0200 Subject: [PATCH] fix status webhook --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 30c84cc..83a03d4 100644 --- a/server.py +++ b/server.py @@ -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"):