We want to add webhook support for Render in tern. Render sends events for deployments, services, and more.
Tasks
- Webhook Handler:
- Implement a handler in
/src/platforms/render.ts.
- Normalize payloads into tern’s event structure (id, type, timestamp, payload).
- Platform Config:
- Add
platformConfigs.render with supported event types (e.g., deploy.created, deploy.finished, service.updated).
- Test Cases:
- Add fixtures for at least 3 event types (deploy created, deploy finished, service updated).
- Write Jest tests in
/tests/render.test.ts to validate parsing.
- Docs:
- Add setup instructions in
/docs/platforms.md.
- Example: how to configure a webhook in Render dashboard.
- Acceptance Criteria:
- Render handler implemented
- Tests cover 3+ event types
- Docs updated
- Final Integration Testing:
- Trigger a webhook event from the Render dashboard (use the “Send Test Event” option if available).
- Verify the signature using the platform’s signing secret/HMAC.
- The event should pass verification if the signature is correct.
- The event should fail verification if the signature is invalid.
- Add a test case in Jest covering both valid and invalid signature scenarios.
Contributor directive:
- Mention this issue and its number in your PR to get it linked with the issue.
Helpful Links: Render Webhooks Docs
We want to add webhook support for Render in tern. Render sends events for deployments, services, and more.
Tasks
/src/platforms/render.ts.platformConfigs.renderwith supported event types (e.g., deploy.created, deploy.finished, service.updated)./tests/render.test.tsto validate parsing./docs/platforms.md.Contributor directive:
Helpful Links: Render Webhooks Docs