Files
vibe-kanban/crates
Alex Netsch 6e536e41f4 Event for merged PRs (vibe-kanban) (#924)
* Done! I've successfully added analytics tracking for when PRs are merged. Here's what was implemented:

**Changes made:**

1. **crates/services/src/services/pr_monitor.rs**:
   - Added `AnalyticsContext` import
   - Added optional `analytics: Option<AnalyticsContext>` field to `PrMonitorService` struct
   - Updated `spawn()` method to accept `Option<AnalyticsContext>` parameter
   - Added analytics event tracking in `check_pr_status()` method (lines 134-147) when a PR is merged

2. **crates/deployment/src/lib.rs**:
   - Added `AnalyticsContext` import
   - Updated `spawn_pr_monitor_service()` to create and pass an `AnalyticsContext` to the PR monitor service

**Analytics event details:**
- **Event name**: `pr_merged`
- **Properties**:
  - `task_id`: Associated task ID
  - `task_attempt_id`: Task attempt ID
  - `project_id`: Project ID

The implementation follows the same pattern used for the `task_attempt_finished` event and the code successfully compiles.

* Clippy + fmt
2025-10-06 13:46:24 +01:00
..
2025-10-04 13:31:52 +00:00
2025-10-04 13:31:52 +00:00
2025-10-04 13:31:52 +00:00
2025-10-04 13:31:52 +00:00