webhookd 0.2.3

GitLab/GitHub webhook daemon to run scripts on trigger
listen_addr = "0.0.0.0:8000" # optional

[[project]]
name = "REDACTED"
# For GitLab, it is matched against "object_kind"
# For GitHub, it is matched against X-GitHub-Event header
event = "push" # optional, do not filter if empty
exec = "echo $PWD"
working_directory = "REDACTED"
endpoint = "/" # optional, match the url path when set
stdout = "stdout.log" # optional, append stdout to file
stderr = "stderr.log" # optional, append stderr to file
token = "REDACTED" # optional, match X-Gitlab-Token header when set
secret = "REDACTED" # optional, verify X-Hub-Signature when set
save_body = false # optional, save webhook body to temporary file and pass the path to program via env WEBHOOKD_BODY, default to false

# A complete example
[[project]]
name = "github_ping"
event = "ping"
exec = "echo test"
working_directory = "/"
stdout = "stdout.log"
secret = "secret"
save_body = true