mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Add url in github hook
This commit is contained in:
parent
cb1650d912
commit
4afeda5d69
1 changed files with 2 additions and 1 deletions
|
@ -415,7 +415,8 @@ def hooks_github():
|
||||||
# TODO: add secret check
|
# TODO: add secret check
|
||||||
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", []):
|
||||||
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["sha"]}">{commit["message"]}</b> di {commit["author"]}\n'
|
if commit["distinct"]:
|
||||||
|
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["url"]}">{commit["message"]}</b> di {commit["author"]}\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