docs: 修正 README 中 Hook 配置格式,与实际配置保持一致
This commit is contained in:
@@ -64,14 +64,23 @@ docker-compose up -d
|
|||||||
"hooks": {
|
"hooks": {
|
||||||
"Notification": [
|
"Notification": [
|
||||||
{
|
{
|
||||||
"type": "command",
|
"matcher": "",
|
||||||
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Stop": [
|
"Stop": [
|
||||||
{
|
{
|
||||||
"type": "command",
|
"hooks": [
|
||||||
"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"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"PreToolUse": [
|
"PreToolUse": [
|
||||||
@@ -79,8 +88,8 @@ docker-compose up -d
|
|||||||
"matcher": "AskUserQuestion",
|
"matcher": "AskUserQuestion",
|
||||||
"hooks": [
|
"hooks": [
|
||||||
{
|
{
|
||||||
"type": "command",
|
"type": "http",
|
||||||
"command": "curl -s -X POST http://47.121.181.112:8082/hooks -H 'Content-Type: application/json' -d @-"
|
"url": "http://47.121.181.112:8082/hooks"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user