CI: Less scary looking force push webhook --nobuild

This commit is contained in:
WillyJL
2025-09-16 01:52:45 +02:00
parent 1eefbb77da
commit 9deecbc363

View File

@@ -33,7 +33,7 @@ if __name__ == "__main__":
change = ( change = (
"Force Push" "Force Push"
if event["forced"] and not count if event["forced"] and not count
else f"{count} New Commit{'' if count == 1 else 's'}" else f"{count} New Commit{'' if count == 1 else 's'}{' (Force Push)' if event['forced'] else ''}"
) )
desc = f"[**{change}**]({event['compare']}) | [{branch}]({event['repository']['html_url']}/tree/{branch})\n" desc = f"[**{change}**]({event['compare']}) | [{branch}]({event['repository']['html_url']}/tree/{branch})\n"
for i, commit in enumerate(event["commits"]): for i, commit in enumerate(event["commits"]):
@@ -49,7 +49,7 @@ if __name__ == "__main__":
desc = desc.rsplit("\n", 1)[0] + f"\n+ {count - i} more commits" desc = desc.rsplit("\n", 1)[0] + f"\n+ {count - i} more commits"
break break
url = event["compare"] url = event["compare"]
color = 16723712 if event["forced"] else 11761899 color = 11761899
case "release": case "release":
webhook = "RELEASE_WEBHOOK" webhook = "RELEASE_WEBHOOK"