Skip to content

feat(rootly): add On Event trigger component#3110

Open
nenadilic84 wants to merge 2 commits intosuperplanehq:mainfrom
nenadilic84:feat/rootly-on-event
Open

feat(rootly): add On Event trigger component#3110
nenadilic84 wants to merge 2 commits intosuperplanehq:mainfrom
nenadilic84:feat/rootly-on-event

Conversation

@nenadilic84
Copy link

Summary

Adds a new On Event trigger for the Rootly integration that fires when incident timeline events (notes, annotations) are created or updated.

  • Backend: on_event.go implementing the trigger with webhook signature verification, event type filtering, and optional filters for incident status, severity, and event visibility
  • Tests: 16 test cases covering signature validation, event filtering, and all optional filter combinations
  • Frontend: TypeScript trigger renderer (on_event.ts) displaying timeline event details, parent incident info, and configured filters
  • Docs: Auto-generated documentation with example data

Configuration Options

  • Events (required): incident_event.created, incident_event.updated
  • Incident Status (optional): Filter by parent incident status
  • Severity (optional): Filter by parent incident severity
  • Visibility (optional): Filter by event visibility (internal/external)

Design Decisions

  • Dropped "event kind" and "event source" filters per maintainer feedback on feat: Add rootly.onEvent component #3042
  • Emits both incident_event (full timeline event) and incident (parent incident) at the top level for downstream convenience
  • Reuses existing WebhookConfiguration, verifyWebhookSignature, and WebhookPayload from the Rootly integration

Closes #2820

Test plan

  • All 16 unit tests pass (go test ./pkg/integrations/rootly/... -run Test__OnEvent)
  • Go build succeeds (go build ./...)
  • Component docs regenerated and in sync
  • TypeScript compiles without errors
  • Demo video showing: (1) setting up the integration, (2) a Rootly timeline event triggering a workflow

@nenadilic84
Copy link
Author

Demo video coming shortly — recording the integration setup and a Rootly timeline event triggering a workflow.

Add a new trigger that fires when Rootly incident timeline events occur
(e.g. notes, annotations). Supports optional filtering by incident
status, severity, and event visibility.

Closes superplanehq#2820

Signed-off-by: Nenad Ilic <nenadilic84@gmail.com>
Signed-off-by: Nenad Ilic <nenadilic84@gmail.com>
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.

[Rootly] On Event

1 participant