mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-14 09:34:43 +00:00
Update README.md
This commit is contained in:
parent
2e16eb5d77
commit
93ab47359d
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ Hooks are defined using JSON format. The _hooks file_ must contain an array of J
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
## Passing parameters to the command
|
||||||
|
If you wish to pass parameters from the payload to the command that will be executed, you can use the `args` field in the `hook` definition. The parameters will be passed in order they are specified. If the payload does not contain the specified parameter, an empty string will be passed to the command instead.
|
||||||
|
|
||||||
## Trigger rules
|
## Trigger rules
|
||||||
### And
|
### And
|
||||||
*And rule* will evaluate to _true_, if and only if all of the sub rules evaluate to _true_.
|
*And rule* will evaluate to _true_, if and only if all of the sub rules evaluate to _true_.
|
||||||
|
|
Loading…
Add table
Reference in a new issue