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" + } + } + } + } +] +```