1
0
Fork 0
mirror of https://github.com/adnanh/webhook.git synced 2026-07-23 02:08:39 +00:00
This commit is contained in:
Daniele Sabre 2026-02-13 09:18:00 +01:00 committed by GitHub
commit 3cee5b030d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 93 additions and 57 deletions

View file

@ -116,6 +116,16 @@ If you are referencing values for environment, you can use `envname` property to
```
to get the QUERY environment variable set to the `q` parameter passed in the query string.
If you need a default value, you can use `default` property to set a value used in case the value is not found or is empty like so
```json
{
"source": "url",
"name": "q",
"default": "123"
}
```
**Note**: The `default` property is ignored when the `source` is set to `string`, `entire-payload`, `entire-headers` or `entire-query`.
# Special cases
If you want to pass the entire payload as JSON string to your command you can use
```json