From ea7f57d984efd472b30276ffc1591015d3557312 Mon Sep 17 00:00:00 2001 From: wonder Date: Tue, 23 Jun 2026 21:27:55 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=20README=20=E4=B8=AD?= =?UTF-8?q?=20Hook=20=E9=85=8D=E7=BD=AE=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E4=B8=8E=E5=AE=9E=E9=99=85=E9=85=8D=E7=BD=AE=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2d0ecb5..d1cc1f3 100644 --- a/README.md +++ b/README.md @@ -64,14 +64,23 @@ docker-compose up -d "hooks": { "Notification": [ { - "type": "command", - "command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-" + "matcher": "", + "hooks": [ + { + "type": "http", + "url": "http://47.121.181.112:8082/hooks" + } + ] } ], "Stop": [ { - "type": "command", - "command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-" + "hooks": [ + { + "type": "http", + "url": "http://47.121.181.112:8082/hooks" + } + ] } ], "PreToolUse": [ @@ -79,8 +88,8 @@ docker-compose up -d "matcher": "AskUserQuestion", "hooks": [ { - "type": "command", - "command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-" + "type": "http", + "url": "http://47.121.181.112:8082/hooks" } ] }