From 12b53312668f19dc1329c1ceb5ef8f8b4d6c6f5d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 10 Jan 2023 16:27:41 +0100 Subject: [PATCH] Fix commit message being incorrectly truncated --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 70c1111..4e9bc21 100644 --- a/server.py +++ b/server.py @@ -100,7 +100,7 @@ async def github(request): ) if len(commit_message) > 120: - commit_message = commit_message[120:] + "..." + commit_message = commit_message[:120] + "..." await notify( 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: - commit_message = commit_message[120:] + "..." + commit_message = commit_message[:120] + "..." await notify( f"[{repository}/{branch}] {commit_message} - {author}",