From 93ab47359d1be6b17adf87f53113eb2a051569e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adnan=20Hajdarevi=C4=87?= Date: Thu, 26 Feb 2015 16:43:45 +0100 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 900bd72..6be06c1 100644 --- a/README.md +++ b/README.md @@ -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 ### And *And rule* will evaluate to _true_, if and only if all of the sub rules evaluate to _true_.