mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Merge pull request #49006 from ClickHouse/dont-allow-bad-changelogs
Dont allow bad changelogs
This commit is contained in:
commit
366980dcf6
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user