From 9deecbc363c2a297e103c107778f16301a4d4bc8 Mon Sep 17 00:00:00 2001 From: WillyJL Date: Tue, 16 Sep 2025 01:52:45 +0200 Subject: [PATCH] CI: Less scary looking force push webhook --nobuild --- .github/workflow_data/webhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflow_data/webhook.py b/.github/workflow_data/webhook.py index 70bda300b..c92d4594d 100644 --- a/.github/workflow_data/webhook.py +++ b/.github/workflow_data/webhook.py @@ -33,7 +33,7 @@ if __name__ == "__main__": change = ( "Force Push" 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" 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" break url = event["compare"] - color = 16723712 if event["forced"] else 11761899 + color = 11761899 case "release": webhook = "RELEASE_WEBHOOK"