Skip to content

fix: add trailing anchors to all status: regex patterns in signals.py#207

Merged
fazxes merged 1 commit intomainfrom
fix/0216-status-regex-trailing-anchors
Apr 9, 2026
Merged

fix: add trailing anchors to all status: regex patterns in signals.py#207
fazxes merged 1 commit intomainfrom
fix/0216-status-regex-trailing-anchors

Conversation

@fazxes
Copy link
Copy Markdown
Member

@fazxes fazxes commented Apr 9, 2026

Summary

Patterns fixed

Function Pattern before Pattern after
count_pending_tasks ^status:\s*pending ^status:\s*pending\s*$
count_stale_tasks ^status:\s*pending ^status:\s*pending\s*$
count_pending_pentest_framework_tasks ^status:\s*pending ^status:\s*pending\s*$
has_urgent_tasks ^status:\s*pending + ^priority:\s*urgent both with \s*$

Test plan

  • make check passes (all 926 tests pass, ruff/mypy clean)
  • No false positive matches on hypothetical status: pending-review values
  • Consistent with the already-tightened source: and target: patterns in the same file

All four unanchored `^status:\s*pending` patterns now use `^status:\s*pending\s*$`
to prevent false matches on values like `status: pending-review`. Also tightens
`^priority:\s*urgent` to `^priority:\s*urgent\s*$` for consistency. Addresses
task #216 and the meta-reviewer advisory note from PR #205.
@fazxes fazxes merged commit 3f3564a into main Apr 9, 2026
7 checks passed
@fazxes fazxes deleted the fix/0216-status-regex-trailing-anchors branch April 9, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant