Skip to content

Commit 12cc0e5

Browse files
committed
Revert "check for breaking changes as headers"
This reverts commit bb66be4.
1 parent 692abde commit 12cc0e5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/find_breaking_changes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ def get_releases_with_breaking_changes(repo, current_version, new_version):
4949
release_version
5050
) <= version.parse(new_version):
5151

52-
# Check if release notes have breaking changes as headers
53-
body = release.get("body", "")
54-
breaking_header_pattern = r'^#+.*breaking changes'
55-
if re.search(breaking_header_pattern, body, re.IGNORECASE | re.MULTILINE):
52+
# Check if release notes mention breaking changes
53+
body = release.get("body", "").lower()
54+
if any(
55+
keyword in body for keyword in ["breaking change", "breaking changes", "breaking:", "breaking"]
56+
):
5657
breaking_releases.append(
5758
{
5859
"version": release_version,

0 commit comments

Comments
 (0)