Fix commit message being incorrectly truncated

This commit is contained in:
Alexandre Aubin 2023-01-10 16:27:41 +01:00
parent 3489e10774
commit 12b5331266

View file

@ -100,7 +100,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] + "..."
await notify( await notify(
f"[{repository}] @{user} pushed {len(commits)} commit to {branch}: {commit_message} {url}", f"[{repository}] @{user} pushed {len(commits)} commit to {branch}: {commit_message} {url}",
@ -119,7 +119,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] + "..."
await notify( await notify(
f"[{repository}/{branch}] {commit_message} - {author}", f"[{repository}/{branch}] {commit_message} - {author}",