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:
parent
fb30ed2242
commit
8e1f281cbf
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue