Skip to content

Send alert email only when canSend answers exactly true - #6

Merged
mgilardi merged 1 commit into
mainfrom
exact-cansend
Nov 23, 2026
Merged

mgilardi merged 1 commit into
mainfrom
exact-cansend

Conversation

@mgilardi

Copy link
Copy Markdown
Contributor

A truthy canSend answer ('yes', 1) used to send. Now only an exact true sends; anything else records the alert as not sent. readystock.ts and stock.ts, with two tests that fail without the change. README and CHANGELOG updated. Found by Whitehat's host-answer lint.

🤖 Generated with Claude Code

A truthy answer such as 'yes' or 1 from the host's canSend used to send
email. Like every other host answer in the plugins, only an exact true
counts now; anything else records the alert as not sent with "Email is
off here." Found by Whitehat's host-answer lint.

Tested: two new tests (stock alerts over five truthy answers, ready-stock
alerts with 'yes') fail without the change and pass with it; full suite
and typecheck pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mgilardi
mgilardi merged commit c49078d into main Nov 23, 2026
2 checks passed
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