[mod] display 3 commits, not 5, it's too much

This commit is contained in:
Laurent Peuch 2019-02-07 15:47:39 +01:00
parent 32ddf35ba7
commit 2bbf3d56c0

View file

@ -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", " ")