mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fix displayed name in github hook
This commit is contained in:
parent
18088eff00
commit
fb30ed2242
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ def hooks_github():
|
|||
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
|
||||
for commit in j.get("commits", []):
|
||||
if commit["distinct"]:
|
||||
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["url"]}">{commit["message"]}</a> di <b>{commit["author"]}</b>\n'
|
||||
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["url"]}">{commit["message"]}</a> di <b>{commit["author"].get("username", "anonimo")}</b>\n'
|
||||
telegram_bot.send_message(config["Telegram"]["main_group"], message,
|
||||
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
|
||||
return "Done."
|
||||
|
|
Loading…
Reference in a new issue