mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] actually login is better
This commit is contained in:
parent
aaf6f23a5c
commit
b5e5dd82f2
1 changed files with 2 additions and 2 deletions
|
@ -461,11 +461,11 @@ async def github(request):
|
||||||
user = request.json["sender"]["login"]
|
user = request.json["sender"]["login"]
|
||||||
url = request.json["commit"]["html_url"]
|
url = request.json["commit"]["html_url"]
|
||||||
commit_message = request.json["commit"]["commit"]["message"]
|
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"):
|
if state not in ("success", "pending"):
|
||||||
await notify(
|
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:
|
else:
|
||||||
print(
|
print(
|
||||||
|
|
Loading…
Reference in a new issue