mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Use a different message if unity is being updated instead of master
This commit is contained in:
parent
2a01e025ec
commit
36fb339480
1 changed files with 4 additions and 1 deletions
|
@ -392,7 +392,10 @@ def hooks_github():
|
|||
abort(400)
|
||||
return
|
||||
# TODO: add secret check
|
||||
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
|
||||
if j["ref"] == "refs/heads/master":
|
||||
message = f"🐙 Nuovi aggiornamenti a Royalnet <code>master</code>:\n"
|
||||
if j["ref"] == "refs/heads/unity":
|
||||
message = f"🐙 Progresso di Royalnet <code>unity</code>:\n"
|
||||
for commit in j.get("commits", []):
|
||||
if commit["distinct"]:
|
||||
message += f'<a href="{commit["url"]}">{commit["message"]}</a>' \
|
||||
|
|
Loading…
Reference in a new issue