From 3029b3468feea2ddba8391c87cd35f656e03ae94 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 16:52:11 +0000 Subject: [PATCH] chore: auto-fix lint & formatting [skip ci] --- docs/guide/configuration.md | 18 +++++++++--------- docs/zh/guide/configuration.md | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md index ca09521..f7a33a9 100644 --- a/docs/guide/configuration.md +++ b/docs/guide/configuration.md @@ -185,15 +185,15 @@ Routes belong to groups. Groups scope admin access and can restrict which events } ``` -| Field | Type | Required | Description | -| ----------- | -------- | -------- | ---------------------------------------------------------------------------- | -| `id` | string | Yes | Lowercase id (`a-z0-9`, `-`); referenced by each route's `groupId` | -| `name` | string | Yes | Human-readable group name | -| `members` | object[] | No | `{ login, role }` entries; role is `owner`, `admin`, or `viewer` | -| `adminIds` | string[] | No | Deprecated legacy field; treated as `members` with role `owner` when present | -| `owners` | string[] | No | Org/user logins whose events are accepted into this group; empty = all | -| `providers` | string[] | No | Source platforms allowed into this group (`github`, `gitea`); empty = all | -| `emoji` | boolean | No | Whether to include emoji in this group's messages (default `true`) | +| Field | Type | Required | Description | +| ----------- | -------- | -------- | ---------------------------------------------------------------------------------------------------------------- | +| `id` | string | Yes | Lowercase id (`a-z0-9`, `-`); referenced by each route's `groupId` | +| `name` | string | Yes | Human-readable group name | +| `members` | object[] | No | `{ login, role }` entries; role is `owner`, `admin`, or `viewer` | +| `adminIds` | string[] | No | Deprecated legacy field; treated as `members` with role `owner` when present | +| `owners` | string[] | No | Org/user logins whose events are accepted into this group; empty = all | +| `providers` | string[] | No | Source platforms allowed into this group (`github`, `gitea`); empty = all | +| `emoji` | boolean | No | Whether to include emoji in this group's messages (default `true`) | | `lang` | string | No | Message language for every route in this group (e.g. `en`, `zh`; custom via KV `i18n:`) — defaults to `en` | ### Roles diff --git a/docs/zh/guide/configuration.md b/docs/zh/guide/configuration.md index e748286..5914a64 100644 --- a/docs/zh/guide/configuration.md +++ b/docs/zh/guide/configuration.md @@ -185,15 +185,15 @@ WebHooker 内置了位于 `/admin` 的配置控制台,可在浏览器中管理 } ``` -| 字段 | 类型 | 必需 | 说明 | -| ----------- | -------- | ---- | ------------------------------------------------------------------ | -| `id` | string | 是 | 小写 id(`a-z0-9`、`-`),由每条路由的 `groupId` 引用 | -| `name` | string | 是 | 可读的分组名称 | -| `members` | object[] | 否 | `{ login, role }` 列表;角色为 `owner`、`admin` 或 `viewer` | -| `adminIds` | string[] | 否 | 已废弃的旧字段;存在时按 role 为 `owner` 的成员处理 | -| `owners` | string[] | 否 | 允许事件进入该分组的组织/用户登录名;为空表示不限制 | -| `providers` | string[] | 否 | 允许进入该分组的来源平台(`github`、`gitea`);为空表示全部 | -| `emoji` | boolean | 否 | 是否在该分组消息中显示 emoji(默认 `true`) | +| 字段 | 类型 | 必需 | 说明 | +| ----------- | -------- | ---- | ------------------------------------------------------------------------------------ | +| `id` | string | 是 | 小写 id(`a-z0-9`、`-`),由每条路由的 `groupId` 引用 | +| `name` | string | 是 | 可读的分组名称 | +| `members` | object[] | 否 | `{ login, role }` 列表;角色为 `owner`、`admin` 或 `viewer` | +| `adminIds` | string[] | 否 | 已废弃的旧字段;存在时按 role 为 `owner` 的成员处理 | +| `owners` | string[] | 否 | 允许事件进入该分组的组织/用户登录名;为空表示不限制 | +| `providers` | string[] | 否 | 允许进入该分组的来源平台(`github`、`gitea`);为空表示全部 | +| `emoji` | boolean | 否 | 是否在该分组消息中显示 emoji(默认 `true`) | | `lang` | string | 否 | 该分组所有路由的消息语言(如 `en`、`zh`;可通过 KV `i18n:` 自定义)——默认 `en` | ### 角色