CI: Fix for critical bug fix regex

This commit is contained in:
Max Kainov 2024-08-14 13:37:14 +02:00
parent a51f867ce0
commit 962bf1d821

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