mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[mod] cap number of commits shown in push
This commit is contained in:
parent
13d417d5e3
commit
e136c96333
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ async def github(request):
|
||||||
else:
|
else:
|
||||||
url = request.json["compare"]
|
url = request.json["compare"]
|
||||||
notify(f"[{repository}] @{user} pushed {len(commits)} commits to {branch}: {url}")
|
notify(f"[{repository}] @{user} pushed {len(commits)} commits to {branch}: {url}")
|
||||||
for commit in commits:
|
for commit in commits[-5:]:
|
||||||
author = commit["author"]["name"]
|
author = commit["author"]["name"]
|
||||||
commit_message = commit["message"]
|
commit_message = commit["message"]
|
||||||
notify(f"[{repository}/{branch}] {commit_message} - {author}")
|
notify(f"[{repository}/{branch}] {commit_message} - {author}")
|
||||||
|
|
Loading…
Reference in a new issue