WebHooker/docs/zh/index.md
RhenCloud d996dbe45d
docs: align VitePress site with REST send, optional gateway and slash commands
- deployment: drop DISCORD_CHANNEL_ID, add ADMIN_USER_IDS, PKCS#8 key note,
  applications.commands invite scope, and an optional Gateway section
- getting-started: PKCS#8 .dev.vars example, remove channel ID
- introduction: REST delivery, optional DiscordGateway DO, delivery dedup,
  /admin Web UI in architecture and data flow
- index: refresh Workers feature, add Web UI & slash commands feature
2026-08-02 07:02:40 +08:00

1.4 KiB
Raw Blame History

layout hero features
home
name text tagline actions
WebHooker GitHub Webhook → Discord 通过 Cloudflare Workers 接收 GitHub 事件,应用过滤器,将格式化消息路由到 Discord 频道或帖子。
theme text link
brand 快速开始 /zh/guide/getting-started
theme text link
alt 在 GitHub 上查看 https://github.com/ReCloudStudio/WebHooker
title details
23 种事件格式化器 为 push、pull_request、issues、release、workflow_run 及其他 18 种事件类型提供丰富的 Discord 嵌入消息,支持颜色编码输出。
title details
灵活的过滤器 支持按事件类型、仓库、参与者、操作、分支(含 PR和关键字支持正则过滤。支持排除模式。
title details
Cloudflare Workers 运行在 Cloudflare 边缘网络上。通过 Discord REST API 发送消息,并可选地用 Durable Object 维持 Gateway 连接以提供在线状态与斜杠命令。
title details
Web UI 与斜杠命令 在内置管理控制台中管理路由、查看发送日志。绑定你的 GitHub 账号,通过 /gh 命令以本人身份评论 issue/PR。
title details
签名验证 使用 Web Crypto API 进行 HMAC-SHA256 webhook 签名验证,支持时间安全比较。
title details
优雅降级 当 Discord Token 不可用时以 webhook-only 模式运行。提供健康检查端点用于监控。