feat(#2): Alert & anomaly detection with webhooks #7

Merged
ti-paul merged 1 commit from feature/2-alert-webhook into main 2026-06-12 00:39:38 +00:00
Member

Closes #2

New: src/alerts.js

  • Watch list management (persisted JSON)
  • Baseline comparison & anomaly detection
  • Activity drop/spike/quiet/contributor loss
  • Discord/Slack webhook support
  • Customizable thresholds

CLI

  • git-pulse watch/unwatch/watch-list/check

23 tests. 99 total pass.

Closes #2 ## New: src/alerts.js - Watch list management (persisted JSON) - Baseline comparison & anomaly detection - Activity drop/spike/quiet/contributor loss - Discord/Slack webhook support - Customizable thresholds ## CLI - git-pulse watch/unwatch/watch-list/check 23 tests. **99 total pass.**
feat(#2): alert & anomaly detection with webhooks
Some checks failed
CI / test (pull_request) Failing after 0s
2e24ba0114
New module src/alerts.js:
- watchRepo/unwatchRepo: manage watch list (persisted JSON)
- setBaseline: store activity baseline for comparison
- detectAnomalies: activity drop, spike, quiet, contributor loss, level drop
- formatWebhookAlert: Discord/Slack compatible payload
- sendWebhook: HTTP POST notification
- renderAlerts/renderWatchList: ASCII output
- Customizable thresholds per repo

CLI integration:
- git-pulse watch <url> [--name=X] [--webhook=URL]
- git-pulse unwatch <url>
- git-pulse watch-list
- git-pulse check <url>

23 new tests. All 99 tests pass. Closes #2.
ti-paul left a comment
No description provided.
23 tests, 99 total. Clean alert system. LGTM.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/git-pulse!7
No description provided.