1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix url in github hook

This commit is contained in:
Steffo 2019-01-02 19:19:10 +01:00
parent fb30ed2242
commit 8e1f281cbf

View file

@ -416,7 +416,7 @@ def hooks_github():
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n" message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
for commit in j.get("commits", []): for commit in j.get("commits", []):
if commit["distinct"]: if commit["distinct"]:
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["url"]}">{commit["message"]}</a> di <b>{commit["author"].get("username", "anonimo")}</b>\n' message += f'<a href="{commit["url"]}">{commit["message"]}</a> di <b>{commit["author"].get("username", "anonimo")}</b>\n'
telegram_bot.send_message(config["Telegram"]["main_group"], message, telegram_bot.send_message(config["Telegram"]["main_group"], message,
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True) parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
return "Done." return "Done."