Merge pull request #49006 from ClickHouse/dont-allow-bad-changelogs

Dont allow bad changelogs
This commit is contained in:
Alexey Milovidov 2023-04-22 01:08:40 +03:00 committed by GitHub
commit 366980dcf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,6 +180,8 @@ def check_pr_description(pr_info: PRInfo) -> Tuple[str, str]:
entry = " ".join(entry_lines) entry = " ".join(entry_lines)
# Don't accept changelog entries like '...'. # Don't accept changelog entries like '...'.
entry = re.sub(r"[#>*_.\- ]", "", entry) entry = re.sub(r"[#>*_.\- ]", "", entry)
# Don't accept changelog entries like 'Close #12345'.
entry = re.sub(r"^[\w\-\s]{0,10}#?\d{5,6}\.?$", "", entry)
else: else:
i += 1 i += 1