-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.toml
More file actions
25 lines (23 loc) · 882 Bytes
/
example.toml
File metadata and controls
25 lines (23 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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