From aaf6f23a5c34bab3d810e8f52d320133fe8a22c0 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 6 May 2020 21:55:14 +0200 Subject: [PATCH] [enh] better travis/gitlab pipeline message --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 0429a75..d96b4fe 100644 --- a/server.py +++ b/server.py @@ -460,10 +460,12 @@ async def github(request): repository = request.json["repository"]["name"] user = request.json["sender"]["login"] url = request.json["commit"]["html_url"] + commit_message = request.json["commit"]["commit"]["message"] + commit_author = request.json["commit"]["committer"]["name"] if state not in ("success", "pending"): await notify( - f"[{repository}] {description} {target_url} on commit {url}" + f'[{repository}] {description} {target_url} on commit {url} "{commit_message.replace("\n", " ")}" by {commit_author}' ) else: print(