From 50856ca4755e42f9dbf31d54fd3541ade2cc0b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adnan=20Hajdarevi=C4=87?= Date: Tue, 17 Mar 2015 19:52:31 +0100 Subject: [PATCH] added slack slash command --- Hook-Examples.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Hook-Examples.md b/Hook-Examples.md index 30a085e..24bd27e 100644 --- a/Hook-Examples.md +++ b/Hook-Examples.md @@ -56,3 +56,28 @@ This page is still work in progress. Feel free to contribute! } ] ``` + +# Slack slash command +```json +[ + { + "id": "redeploy-webhook", + "execute-command": "/home/adnan/redeploy-go-webhook.sh", + "command-working-directory": "/home/adnan/go", + "response-message": "Executing redeploy script", + "trigger-rule": + { + "match": + { + "type": "value", + "value": "", + "parameter": + { + "source": "payload", + "name": "token" + } + } + } + } +] +```