All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
31 lines
870 B
Markdown
31 lines
870 B
Markdown
# Webhook Notifier
|
|
|
|
Outbound webhook delivery with connection credentials and delivery logging.
|
|
|
|
## Features
|
|
|
|
- **Starlark `http.post`** — outbound HTTP with custom headers
|
|
- **`connections.get`** — fallback to stored webhook connection credentials
|
|
- **Delivery logging** — records URL, status code, event to `webhook_log` ext_data table
|
|
- **Result review** — delivery status shown in final review stage
|
|
|
|
## Stage Flow
|
|
|
|
```
|
|
[configure] → [fire-webhook] → [result]
|
|
team automated review
|
|
(http.post)
|
|
```
|
|
|
|
## Starlark Hook
|
|
|
|
- **`on_fire(ctx)`** — Posts JSON payload to webhook URL, falls back to `connections.get("webhook")`, logs delivery to `webhook_log`
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
curl -X POST $BASE/api/v1/admin/packages/install \
|
|
-H "Authorization: Bearer $TOKEN" \
|
|
-F "file=@packages/webhook-notifier"
|
|
```
|