mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[mod] display 3 commits, not 5, it's too much
This commit is contained in:
parent
32ddf35ba7
commit
2bbf3d56c0
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ async def github(request):
|
|||
elif len(commits) > 1:
|
||||
url = request.json["compare"]
|
||||
notify(f"[{repository}] @{user} pushed {len(commits)} commits to {branch}: {url}", repository=repository)
|
||||
for commit in commits[-5:]:
|
||||
for commit in commits[-3:]:
|
||||
author = commit["author"]["name"]
|
||||
commit_message = commit["message"].replace("\r\n", " ").replace("\n", " ")
|
||||
|
||||
|
|
Loading…
Reference in a new issue