mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] forgot to write 'commit' in the template
This commit is contained in:
parent
10f7506292
commit
5bd547a2cb
1 changed files with 2 additions and 2 deletions
|
@ -61,10 +61,10 @@ async def github(request):
|
|||
|
||||
if len(commits) == 1:
|
||||
url = commits[0]["url"]
|
||||
notify(f"[{repository}] @{user} pushed {len(commits)} to {branch}: {url}")
|
||||
notify(f"[{repository}] @{user} pushed {len(commits)} commit to {branch}: {url}")
|
||||
else:
|
||||
url = request.json["compare"]
|
||||
notify(f"[{repository}] @{user} pushed {len(commits)}s to {branch}: {url}")
|
||||
notify(f"[{repository}] @{user} pushed {len(commits)} commits to {branch}: {url}")
|
||||
for commit in commits:
|
||||
author = commit["author"]["name"]
|
||||
commit_message = commit["message"]
|
||||
|
|
Loading…
Add table
Reference in a new issue