Prerequisite You should already have the Kernel react SDK installed (see the quickstart)
Build an event handler
This Django example
- filters on pull request events
- filters on connection links where the user has enabled a “preview” boolean
- clones the user repository
- leaves a comment on the pull request with the raw repository contents
Configure webhook URL
Point Kernel to your newly created event handler by setting the webhook URL in the Terminal.
Event schema
| Name | Description |
|---|---|
| event_id | A Kernel uuid that uniquely identifies the event |
| client_id | Your application’s unique identifier for the corresponding Link, typically matching a “Project” or “App” ID |
| user_config | user input from Link creation, in the schema you provided in the Terminal |
| payload | event payload from upstream git provider (see github docs) |