From 4afeda5d69c9725b41a82edb28c699c919499bac Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 2 Jan 2019 19:15:04 +0100 Subject: [PATCH] Add url in github hook --- webserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webserver.py b/webserver.py index 22f1876e..41ad70c6 100644 --- a/webserver.py +++ b/webserver.py @@ -415,7 +415,8 @@ def hooks_github(): # TODO: add secret check message = f"🐙 Nuovi aggiornamenti a Royalnet:\n" for commit in j.get("commits", []): - message += f'{commit["message"]} di {commit["author"]}\n' + if commit["distinct"]: + message += f'{commit["message"]} di {commit["author"]}\n' telegram_bot.send_message(config["Telegram"]["main_group"], message, parse_mode="HTML", disable_web_page_preview=True, disable_notification=True) return "Done."