[enh] better travis/gitlab pipeline message

This commit is contained in:
Laurent Peuch 2020-05-06 21:55:14 +02:00
parent d9fbceac31
commit aaf6f23a5c

View file

@ -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(