docs: 修正 README 中 Hook 配置格式,与实际配置保持一致
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user