mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2025-10-02 18:00:15 +02:00
Fix webhook underscores
This commit is contained in:
2
.github/workflow_data/webhook.py
vendored
2
.github/workflow_data/webhook.py
vendored
@@ -34,7 +34,7 @@ if __name__ == "__main__":
|
||||
)
|
||||
desc = f"[**{change}**]({event['compare']}) | [{branch}]({event['repository']['html_url']}/tree/{branch})\n"
|
||||
for i, commit in enumerate(event["commits"]):
|
||||
msg = commit['message'].splitlines()[0].replace("`", "")
|
||||
msg = commit['message'].splitlines()[0].replace("`", "").replace("_", "\_")
|
||||
msg = msg[:50] + ("..." if len(msg) > 50 else "")
|
||||
desc += f"\n[`{commit['id'][:7]}`]({commit['url']}): {msg} - [__{commit['author'].get('username')}__](https://github.com/{commit['author'].get('username')})"
|
||||
if len(desc) > 2020:
|
||||
|
Reference in New Issue
Block a user