Skip to content

Commit 69ac6e9

Browse files
committed
update regex
1 parent 2673a37 commit 69ac6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/find_breaking_changes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_releases_with_breaking_changes(repo, current_version, new_version):
5858

5959
# Check if release notes have breaking changes header or bold text
6060
body = release.get("body", "")
61-
if re.search(r"^(#+|\*\*)\s*breaking changes", body, re.MULTILINE | re.IGNORECASE):
61+
if re.search(r"^\s*(#+|\*\*).*breaking changes", body, re.MULTILINE | re.IGNORECASE):
6262
breaking_releases.append(
6363
{
6464
"version": release_version,

0 commit comments

Comments
 (0)