Skip to content

参数表单补上显示名和带说明的选项 - #1

Merged
LEN5010 merged 1 commit into
mainfrom
feat/config-form-fields
Oct 6, 2026
Merged

LEN5010 merged 1 commit into
mainfrom
feat/config-form-fields

Conversation

@LEN5010

@LEN5010 LEN5010 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

变化

  • plugin.toml 的三个参数补上 label;format 的选项改用 { value, label },面板显示为简洁和详细。
  • CI 暂时安装 lendevs/LenBot 的 e62815a,也就是插件配置 v2 的提交(feat: 插件参数按清单声明生成表单 LenBot#36)。宿主合并后,要把它改成合并后的提交。

核对

用包含配置 v2 的宿主在本地运行 pytest tests,全部通过。

合并顺序

等 lendevs/LenBot#36 合并后再合并本 PR。旧宿主读这个清单会报未知字段。

plugin.toml 用宿主插件配置 v2 的 label 和 { value, label } 形式的 options,面板会显示中文名称和选项说明。
CI 暂时安装 lendevs/LenBot 的 e62815a(插件配置 v2 所在提交),宿主合并后改成合并后的提交。
@LEN5010
LEN5010 merged commit ec62a01 into main Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant