From c87f1cad0fa7ddf39c8c920989c91689f8a989b3 Mon Sep 17 00:00:00 2001 From: imcb Date: Sat, 14 Dec 2024 16:10:09 +0000 Subject: [PATCH 1/2] Disable webhook script debug mode --- Tools/actions_changelogs_since_last_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/actions_changelogs_since_last_run.py b/Tools/actions_changelogs_since_last_run.py index 95bfa695501a18..3c29a62365f77f 100755 --- a/Tools/actions_changelogs_since_last_run.py +++ b/Tools/actions_changelogs_since_last_run.py @@ -14,7 +14,7 @@ import requests import yaml -DEBUG = True +DEBUG = False DEBUG_CHANGELOG_FILE_OLD = Path("../Changelog-Impstation-old.yml") GITHUB_API_URL = os.environ.get("GITHUB_API_URL", "https://api.github.com") From a4eda0ffeae4a238ea6a9a981f4b0c9ee3bfca0a Mon Sep 17 00:00:00 2001 From: imcb Date: Sat, 14 Dec 2024 16:10:34 +0000 Subject: [PATCH 2/2] Also do this cause why not --- Tools/actions_changelogs_since_last_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/actions_changelogs_since_last_run.py b/Tools/actions_changelogs_since_last_run.py index 3c29a62365f77f..f0a7c717aef6f3 100755 --- a/Tools/actions_changelogs_since_last_run.py +++ b/Tools/actions_changelogs_since_last_run.py @@ -171,7 +171,7 @@ def changelog_entries_to_message_lines(entries: Iterable[ChangelogEntry]) -> lis # if a single line is longer than the limit, it needs to be truncated if len(message) > DISCORD_SPLIT_LIMIT: - message = message[: DISCORD_SPLIT_LIMIT - 100] + " [...]" + message = message[: DISCORD_SPLIT_LIMIT - 100].rstrip() + " [...]" if url is not None: line = f"{emoji} - {message} [PR]({url}) \n"