Hooks are defined as JSON objects. Please note that in order to be considered valid, a hook object must contain the id
and execute-command
properties. All other properties are considered optional.
Name | Type | Description |
---|---|---|
id |
string | specifies the ID of your hook. This value is used to create the HTTP endpoint (http://yourserver:port/hooks/your-hook-id) |
execute-command |
string | specifies the command that should be executed when the hook is triggered |
command-working-directory |
string | specifies the working directory that will be used for the script when it's executed |