Skip to content

[examples] extract Notification event into standalone example file#22

Merged
NiveditJain merged 1 commit into
mainfrom
ef-22
Apr 7, 2026
Merged

[examples] extract Notification event into standalone example file#22
NiveditJain merged 1 commit into
mainfrom
ef-22

Conversation

@NiveditJain

Copy link
Copy Markdown
Member

Summary

  • Moves the slack-on-idle-notification policy out of examples/policies-advanced/index.js into its own examples/policies-notification.js
  • Adds a cross-reference comment in the advanced example pointing to the new file
  • The new file is self-contained and focused solely on the Notification event

Test plan

  • failproofai --install-hooks custom ./examples/policies-notification.js installs without error
  • With SLACK_WEBHOOK_URL set, going idle sends a Slack message
  • Without SLACK_WEBHOOK_URL set, hook is a no-op (no errors)
  • examples/policies-advanced/index.js still installs and all 5 remaining policies work

🤖 Generated with Claude Code

Moves the slack-on-idle-notification policy out of policies-advanced/index.js
into a standalone examples/policies-notification.js so it can be iterated on
independently and is easier to discover.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@NiveditJain NiveditJain merged commit d2876d9 into main Apr 7, 2026
7 checks passed
@NiveditJain NiveditJain deleted the ef-22 branch April 21, 2026 01:31
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