From 0877046db7acd8fdefdee19dad6abd4bddab2ce4 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Tue, 1 Apr 2025 20:03:42 +0800 Subject: [PATCH] chore: add slack config schema --- templates/schema/platform.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/templates/schema/platform.json b/templates/schema/platform.json index 3819a993..ffc735a0 100644 --- a/templates/schema/platform.json +++ b/templates/schema/platform.json @@ -478,6 +478,36 @@ "description": "是否使用 Markdown 卡片发送消息" } } + }, + { + "title": "Slack 适配器", + "description": "用于接入 Slack", + "properties": { + "adapter": { + "type": "string", + "const": "slack" + }, + "enable": { + "type": "boolean", + "default": false, + "description": "是否启用此适配器" + }, + "bot_token": { + "type": "string", + "default": "", + "description": "Slack 的 bot_token" + }, + "signing_secret": { + "type": "string", + "default": "", + "description": "Slack 的 signing_secret" + }, + "port": { + "type": "integer", + "default": 2288, + "description": "监听的端口" + } + } } ] }