summaryrefslogtreecommitdiff
path: root/README.md
blob: 244f12f4b90b1e86b141d5fe47104adc2002f616 (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
```

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.