Releases: adnanh/webhook
Releases · adnanh/webhook
webhook 2.3.7
- added "omitempty" to json fields
webhook 2.3.6
- added
pass-environment-to-command
field in hooks.json file definition, to allow user to pass variables from headers, query or payload as environment variables to the command - better error handling
- code refactoring
- improved test coverage
- got rid of redundant webhook.go version for windows
webhook 2.3.5
- Webhook will now fail if it cannot load hooks during the startup and it's not running in verbose mode (-verbose flag). If you wish to override this behaviour, use the -nopanic flag when starting webhook.
webhook 2.3.4
- you can now define multiple hooks with the same id, the first one to satisfy all rules will be triggered
- you can now return output from command by setting the property in hook JSON
include-command-output-in-response
totrue
- you can now pass headers, payload or query variables as json to your command using
{ "source": "entire-headers" }
,{ "source": "entire-payload" }
,{ "source": "entire-query" }
respectively
webhook 2.3.3
- separated windows and other platforms to their own build files
- removed signal watcher for windows build target
- you can pass static string as an argument to your command using
{ "source": "string", "name": "argument you want to pass" }
webhook 2.3.2
- added hook reload on USR1 os signal (i.e. on Linux you can now use kill -USR1 webhookpid to reload hooks from hooks file, useful if you don't want to, or, you've forgot to enable hot reload)
- allow charset declaration in Content-Type header (it will be ignored however, but the correct content type hook handler will be invoked, as opposed to previous versions where nothing would happen)
webhook 2.3.0
- added support to decode JSON strings in payload to objects and then to reference them using the dot-notation syntax (useful for Bitbucket hooks where the payload is sent via the x-form-urlencoded as a JSON string)
- code cleanup and refactoring
- added tests
webhook 2.2.2
- added support for custom URL prefix for hooks using the
-urlprefix
argument when starting the webhook - added
response-message
property for hooks that will be sent to the hook initiator when the hook gets requested (useful for slack slash commands)
webhook 2.2.0
- added support for https
webhook 2.1.0
- added hot-reload for hooks file