summaryrefslogtreecommitdiff
path: root/README.md
blob: f9b1b363b44c993a5b0d0868c4efaef9d0b98ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Webhook listener

A webserver which runs commands when it receives webhook events from GitHub.

## Local development

To test the server in development, run:

```sh
$ rm -f /tmp/webhook-listener.sock
$ nix develop --command systemfd --socket unix::/tmp/webhook-listener.sock -- target/debug/webhook-listener ./examples/config.json
```

Then, in another terminal, run this command to send a sample event:

```sh
$ examples/sample_push_event.sh
```

`sample.http` contains a sample request signed with the key `mysecret`. The
payload from that request is found in `sample_push_payload.json` which is what
the above script sends.