Fix workflows --nobuild

This commit is contained in:
Willy-JL
2023-10-24 02:33:17 +01:00
parent 3102b77d1f
commit 16e3294a56
6 changed files with 17 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ if __name__ == "__main__":
for i, commit in enumerate(event["commits"]):
msg = commit['message'].splitlines()[0].replace("`", "")
msg = msg[:50] + ("..." if len(msg) > 50 else "")
desc += f"\n[`{commit['id'][:7]}`]({commit['url']}): {msg} - [__{commit['author']['username']}__](https://github.com/{commit['author']['username']})"
desc += f"\n[`{commit['id'][:7]}`]({commit['url']}): {msg} - [__{commit['author'].get('username')}__](https://github.com/{commit['author'].get('username')})"
if len(desc) > 2020:
desc = desc.rsplit("\n", 1)[0] + f"\n+ {count - i} more commits"
break