[fix] actually login is better

This commit is contained in:
Laurent Peuch 2020-05-06 21:56:43 +02:00
parent aaf6f23a5c
commit b5e5dd82f2

View file

@ -461,11 +461,11 @@ async def github(request):
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"]
commit_author = request.json["commit"]["committer"]["login"]
if state not in ("success", "pending"):
await notify(
f'[{repository}] {description} {target_url} on commit {url} "{commit_message.replace("\n", " ")}" by {commit_author}'
f'[{repository}] {description} {target_url} on commit {url} "{commit_message.replace("\n", " ")}" by @{commit_author}'
)
else:
print(