Skip to content

Commit 514a1c5

Browse files
authored
Look for no-notify mark anywhere in issue body
1 parent 957be8f commit 514a1c5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

process_pr_v2.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,12 +1855,9 @@ def should_notify_without_at(pr_body: str) -> bool:
18551855
"""
18561856
Check if notifications should omit @ symbol.
18571857
1858-
Returns True if first non-blank line matches <notify></notify>.
1858+
Returns True if <notify></notify> is found anywhere in issue body.
18591859
"""
1860-
first_line, _ = extract_command_line(pr_body or "")
1861-
if not first_line:
1862-
return False
1863-
return bool(RE_NOTIFY_NO_AT.match(first_line))
1860+
return bool(RE_NOTIFY_NO_AT.search(pr_body))
18641861

18651862

18661863
# =============================================================================

0 commit comments

Comments
 (0)