[fix] forgot to write 'commit' in the template

This commit is contained in:
Laurent Peuch 2019-02-06 01:19:36 +01:00
parent 10f7506292
commit 5bd547a2cb

View file

@ -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"]