Merge pull request #68332 from ClickHouse/ci_fix_for_changelog_categories

CI: Fix for change log critical bug fix regex
This commit is contained in:
Max K. 2024-08-14 12:18:05 +00:00 committed by GitHub
commit 1513eda3ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,6 @@ def get_descriptions(prs: PullRequests) -> Dict[str, List[Description]]:
# pylint: enable=protected-access
if repo_name not in repos:
repos[repo_name] = pr.base.repo
in_changelog = False
merge_commit = pr.merge_commit_sha
if merge_commit is None:
logging.warning("PR %s does not have merge-commit, skipping", pr.number)
@ -291,7 +290,7 @@ def generate_description(item: PullRequest, repo: Repository) -> Optional[Descri
# Normalize bug fixes
if (
re.match(
r"(?i)bug\Wfix",
r".*(?i)bug\Wfix",
category,
)
# Map "Critical Bug Fix" to "Bug fix" category for changelog