mirror of
https://github.com/adnanh/webhook.git
synced 2025-10-04 13:41:03 +00:00
Fix error on unrecognized configuration keys
- Error while loading configuration with unrecognized keys - Do not start if failed to load configuration from file
This commit is contained in:
parent
dab29e7267
commit
d7367bcb8b
4 changed files with 49 additions and 13 deletions
28
internal/hook/testdata/unrecognized.yaml
vendored
Normal file
28
internal/hook/testdata/unrecognized.yaml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
- id: webhook
|
||||
unrecognized-execute-command: /home/adnan/redeploy-go-webhook.sh
|
||||
command-working-directory: /home/adnan/go
|
||||
response-message: I got the payload!
|
||||
response-headers:
|
||||
- name: Access-Control-Allow-Origin
|
||||
value: '*'
|
||||
pass-arguments-to-command:
|
||||
- source: payload
|
||||
name: head_commit.id
|
||||
- source: payload
|
||||
name: pusher.name
|
||||
- source: payload
|
||||
name: pusher.email
|
||||
trigger-rule:
|
||||
and:
|
||||
- match:
|
||||
type: payload-hmac-sha1
|
||||
secret: mysecret
|
||||
parameter:
|
||||
source: header
|
||||
name: X-Hub-Signature
|
||||
- match:
|
||||
type: value
|
||||
value: refs/heads/master
|
||||
parameter:
|
||||
source: payload
|
||||
name: ref
|
Loading…
Add table
Add a link
Reference in a new issue