Add not for changelog category with titles as entries

This commit is contained in:
Mikhail f. Shiryaev 2022-06-22 19:52:43 +02:00
parent f06c533eaf
commit 779b83262f
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -284,7 +284,15 @@ def generate_description(item: PullRequest, repo: Repository) -> Optional[Descri
# Filter out the PR categories that are not for changelog.
if re.match(
r"(?i)doc|((non|in|not|un)[-\s]*significant)|(not[ ]*for[ ]*changelog)",
r"(?i)((non|in|not|un)[-\s]*significant)|(not[ ]*for[ ]*changelog)",
category,
):
category = "NOT FOR CHANGELOG / INSIGNIFICANT"
return Description(item.number, item.user, item.html_url, item.title, category)
# Filter out documentations changelog
if re.match(
r"(?i)doc",
category,
):
return None