mirror of
https://github.com/adnanh/webhook.git
synced 2025-07-15 15:20:04 +00:00
added flags to specify the hooks json file path, ip and port the webhook should serve on
This commit is contained in:
parent
ffabc5541e
commit
c70c21fda7
4 changed files with 19 additions and 9 deletions
40
hooks.json.example
Normal file
40
hooks.json.example
Normal file
|
@ -0,0 +1,40 @@
|
|||
[
|
||||
{
|
||||
"id": "draos",
|
||||
"command": "dir",
|
||||
"secret": "",
|
||||
"trigger-rule": {
|
||||
"and": [
|
||||
{
|
||||
"match": {
|
||||
"parameter": "commits.100.id",
|
||||
"value": "20c16a7055dae65c69b9ca3f2e8cd1ac8fe9bbf2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"parameter": "ref",
|
||||
"value": "refs/heads/master"
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"parameter": "repository.id",
|
||||
"value": "17341098"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "something",
|
||||
"command": "",
|
||||
"cwd": ".",
|
||||
"trigger-rule": {
|
||||
"match": {
|
||||
"parameter": "second",
|
||||
"value": "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue