mirror of
https://github.com/alvierahman90/gohookr.git
synced 2024-11-21 21:29:53 +00:00
update example config
This commit is contained in:
parent
4c8cb33c59
commit
f2b2ac9368
18
config.json
18
config.json
@ -7,14 +7,28 @@
|
||||
"AppendPayload": true
|
||||
},
|
||||
"Secret": "THISISVERYSECRET",
|
||||
"SignatureHeader": "X-Hub-Signature",
|
||||
"SignaturePrefix": "sha256=",
|
||||
"SignatureHeader": "X-Gitea-Signature",
|
||||
"Tests": [
|
||||
{
|
||||
"Program": "echo",
|
||||
"Arguments": [ "test" ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"fails_tests": {
|
||||
"Script": {
|
||||
"Program": "./example.sh",
|
||||
"AppendPayload": true
|
||||
},
|
||||
"Secret": "who_cares",
|
||||
"SignatureHeader": "X-Hub-Signature-256",
|
||||
"SignaturePrefix": "sha256=",
|
||||
"Tests": [
|
||||
{
|
||||
"Program": "false",
|
||||
"Arguments": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
18
readme.md
18
readme.md
@ -64,14 +64,28 @@ An example config file can be found [here](./config.json) but also below:
|
||||
"AppendPayload": true
|
||||
},
|
||||
"Secret": "THISISVERYSECRET",
|
||||
"SignatureHeader": "X-Hub-Signature",
|
||||
"SignaturePrefix": "sha256=",
|
||||
"SignatureHeader": "X-Gitea-Signature",
|
||||
"Tests": [
|
||||
{
|
||||
"Program": "echo",
|
||||
"Arguments": [ "test" ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"fails_tests": {
|
||||
"Script": {
|
||||
"Program": "./example.sh",
|
||||
"AppendPayload": true
|
||||
},
|
||||
"Secret": "who_cares",
|
||||
"SignatureHeader": "X-Hub-Signature-256",
|
||||
"SignaturePrefix": "sha256=",
|
||||
"Tests": [
|
||||
{
|
||||
"Program": "false",
|
||||
"Arguments": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user