mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
Cosmetics
This commit is contained in:
parent
dcd0a669e8
commit
708b590beb
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ async def github(request):
|
||||||
if len(commit_message) > 120:
|
if len(commit_message) > 120:
|
||||||
commit_message = commit_message[:120] + "..."
|
commit_message = commit_message[:120] + "..."
|
||||||
|
|
||||||
commit_id = url.split("/")[-1]
|
commit_id = url.split("/")[-1][:8]
|
||||||
await notify(
|
await notify(
|
||||||
f"[{repository}] @{user} pushed {len(commits)} commit to {branch}: {commit_message} ([{commit_id}]({url}))",
|
f"[{repository}] @{user} pushed {len(commits)} commit to {branch}: {commit_message} ([{commit_id}]({url}))",
|
||||||
repository=repository,
|
repository=repository,
|
||||||
|
|
Loading…
Reference in a new issue