mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] forgot to add code for notification
This commit is contained in:
parent
5bd547a2cb
commit
dcf46ebd0e
1 changed files with 3 additions and 3 deletions
|
@ -86,13 +86,13 @@ async def github(request):
|
|||
repository = request.json["repository"]["name"]
|
||||
|
||||
if kind == "repository":
|
||||
f"@{user} created new repository {repository}: {url}"
|
||||
notify(f"@{user} created new repository {repository}: {url}")
|
||||
elif kind == "branch":
|
||||
branch = request.json["ref"]
|
||||
f"[{repository}] @{user} created new branch {branch}"
|
||||
notify(f"[{repository}] @{user} created new branch {branch}")
|
||||
elif kind == "tag":
|
||||
tag = request.json["ref"]
|
||||
f"[{repository}] @{user} created new tag {tag}"
|
||||
notify(f"[{repository}] @{user} created new tag {tag}")
|
||||
else:
|
||||
print(f"WARNING: unknown 'create' even kind: {kind}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue