Config schema does not describe the tagFormat and docs.group rules

未关闭 适合新手
#97 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
json, typescript

调研方向

阅读 schema/nanoforge.schema.json,并结合 src/lib/config.ts 中的验证规则,重点关注 tagFormat 和 docs.group。在可用模式表达的地方添加 schema 约束,并为跨字段规则添加说明。编辑器验证和 schema 文档反映所列运行时规则后,即为完成。

由索引模型根据 Issue 内容生成。

描述

documentation good first issue
What is the type of issue?

Documentation is missing

What is the issue?

schema/nanoforge.schema.json doesn't describe the rules parseConfig (src/lib/config.ts) enforces, so an editor validating against the schema accepts configs the actions reject at runtime:

  • tagFormat must contain {version}, can't use {packages} or {run}, must contain {package} in an independent group, and can only use {package} in a shared group of one package (mode single);
  • docs.group must name a shared group.

Some of these can be a pattern; the cross-field ones at least belong in the descriptions.

Found by the quality gate of the v3 rework, branch feat/v3-shared-workflows (commit 4617e86, not pushed yet when this was filed).

Where did you find it?

schema/nanoforge.schema.json (tagFormat and docs.group)

主要语言
TypeScript
星标
0
派生
0
平均合并
15 小时 51 分钟
30 天内合并 PR
21

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NanoForge-dev/actions 的其他 Issue

查看 NanoForge-dev/actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。