mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-22 21:32:32 +00:00
make http return code for mismatched rules configurable
Signed-off-by: Mathias Merscher <Mathias.Merscher@dg-i.net>
This commit is contained in:
parent
8226d5e50f
commit
ddb1f2441a
4 changed files with 20 additions and 1 deletions
|
@ -300,6 +300,7 @@ type Hook struct {
|
|||
PassArgumentsToCommand []Argument `json:"pass-arguments-to-command,omitempty"`
|
||||
JSONStringParameters []Argument `json:"parse-parameters-as-json,omitempty"`
|
||||
TriggerRule *Rules `json:"trigger-rule,omitempty"`
|
||||
TriggerRuleMismatchCode int `json:"trigger-rule-mismatch-code,omitempty"`
|
||||
}
|
||||
|
||||
// ParseJSONParameters decodes specified arguments to JSON objects and replaces the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue