diff --git a/tools/changelog/changelog_utils.py b/tools/changelog/changelog_utils.py index 13bae286cc98..a804d002f0a5 100644 --- a/tools/changelog/changelog_utils.py +++ b/tools/changelog/changelog_utils.py @@ -5,8 +5,6 @@ CL_VALID = ":scroll: CL валиден" CL_NOT_NEEDED = ":scroll: CL не требуется" -DISCORD_EMBED_DESCRIPTION_LIMIT = 4096 - CL_BODY = re.compile(r"(:cl:|🆑)[ \t]*(?P.+?)?\s*\n(?P(.|\n)*?)\n/(:cl:|🆑)", re.MULTILINE) CL_SPLIT = re.compile(r"\s*(?:(?P\w+)\s*:)?\s*(?P.*)") @@ -50,9 +48,6 @@ def validate_changelog(changelog: dict): raise Exception("The changelog has no author.") if len(changelog["changes"]) == 0: raise Exception("No changes found in the changelog. Use special label if changelog is not expected.") - message = "\n".join(map(lambda change: f"{change['tag']} {change['message']}", changelog["changes"])) - if len(message) > DISCORD_EMBED_DESCRIPTION_LIMIT: - raise Exception(f"The changelog exceeds the length limit ({DISCORD_EMBED_DESCRIPTION_LIMIT}). Shorten it.") def parse_changelog(pr_body: str, tags_config: dict | None = None) -> dict | None: