mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
Fix commit message being incorrectly truncated
This commit is contained in:
parent
3489e10774
commit
12b5331266
1 changed files with 2 additions and 2 deletions
|
@ -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}",
|
||||||
|
|
Loading…
Reference in a new issue