Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

workflow-syntax reference: `description`, `default` and `options` keys for `on.workflow_dispatch.inputs.<input_id>` are undocumented

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, yaml
领域
documentation

调研方向

从 content/actions/reference/workflows-and-actions/workflow-syntax.md 开始,找到 on.workflow_dispatch.inputs.<input_id> 部分,特别是现有的 required 和 type 小节。为 description、default 和 options 添加相应的小节,并包含 issue 中描述的 choice 限制。当这三个键都按建议的顺序和风格记录在该处时,即为完成。

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

描述

triage

Where the gap is

content/actions/reference/workflows-and-actions/workflow-syntax.md documents required and type for on.workflow_dispatch.inputs.<input_id>, but three sibling keys that the workflow syntax accepts are missing from the reference:

  • description: a string describing the input, shown in the workflow dispatch UI
  • default: the value used when the workflow is triggered manually without a value supplied
  • options: the list of strings shown in the dropdown for an input whose type is choice

Why it matters

The workflow syntax reference is the page people land on when validating a workflow_dispatch block. The three undocumented keys behave differently from what a reader might guess (for example options is only valid for choice inputs, and default for a choice input must be one of the listed options), so having them absent from the reference leads to trial-and-error. The dedicated workflow_dispatch event page (actions/using-workflows.../events-that-trigger-workflows / workflow-dispatch event doc) does cover these keys, so the gap is specifically the syntax reference page.

Suggested fix

Add the three subsections between the existing required and type subsections, in the same style:

  • on.workflow_dispatch.inputs.<input_id>.description: a string description of the input parameter.
  • on.workflow_dispatch.inputs.<input_id>.default: the default value used when the workflow is triggered manually without a value being supplied for the input.
  • on.workflow_dispatch.inputs.<input_id>.options: a list of strings containing the options shown in the dropdown list when the workflow is triggered manually; only usable when the input's type is choice.

Happy to open the corresponding PR once this issue is triaged.

主要语言
TypeScript
星标
21k
派生
69.1k
平均合并
10 小时 14 分钟
30 天内合并 PR
106

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

github/docs 的其他 Issue

查看 github/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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