From dcf46ebd0eb8215cf0a8aa26a5d7b8b0498c5b05 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 6 Feb 2019 01:23:26 +0100 Subject: [PATCH] [fix] forgot to add code for notification --- server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index c88a016..94a1842 100644 --- a/server.py +++ b/server.py @@ -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}")