From 87a65e512e6b1962aca32c3ea6db14c8e35065f9 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 9 Jan 2019 19:09:32 +0800 Subject: [PATCH] update webhook --- webhook/README.md | 4 +++- webhook/data/hooks.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/webhook/README.md b/webhook/README.md index d0cfd63..d28e5f0 100644 --- a/webhook/README.md +++ b/webhook/README.md @@ -36,7 +36,8 @@ hooks.json { "id": "test", "execute-command": "/etc/webhook/test.sh", - "command-working-directory": "/etc/webhook" + "command-working-directory": "/etc/webhook", + "include-command-output-in-response": true } ] ``` @@ -59,6 +60,7 @@ $ docker-compose up -d Creating webhook_webhook_1... $ curl http://localhost:9000/hooks/test +hello world $ docker-compose logs Attaching to webhook_webhook_1 diff --git a/webhook/data/hooks.json b/webhook/data/hooks.json index 851e2ef..e176317 100644 --- a/webhook/data/hooks.json +++ b/webhook/data/hooks.json @@ -2,6 +2,7 @@ { "id": "test", "execute-command": "/etc/webhook/test.sh", - "command-working-directory": "/etc/webhook" + "command-working-directory": "/etc/webhook", + "include-command-output-in-response": true } ]