mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2025-09-28 20:42:51 +02:00
CI: Less scary looking force push webhook --nobuild
This commit is contained in:
4
.github/workflow_data/webhook.py
vendored
4
.github/workflow_data/webhook.py
vendored
@@ -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"
|
||||||
|
Reference in New Issue
Block a user