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

workflow_dispatch inputs: description, default and options are not documented

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

维护者通常 1 天内回复

@kburym 已经在做这个了。

开始于 2026年10月13日。

  • #46300 来自 @kburym —— 未关闭
  • #46345 来自 @ssmurfgg04-gif —— 已关闭,未合并

评估

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

调研方向

缺口位于工作流语法文章中的 on.workflow_dispatch.inputs.<input_id> 部分,该部分只介绍了 required 和 type。请阅读 actions/languageservices 中 workflow-parser/src/workflow-v1.0.json 里的 workflow_dispatch 输入定义,确认 description、default 和 options 的含义,并查看 data/reusables/actions/workflow-dispatch-inputs-example.md 了解用法。完成标准是每个键都有各自简短的小节,并且 options 说明它仅适用于 choice 输入。

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

描述

triage
Code of Conduct
What article on docs.github.com is affected?

https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onworkflow_dispatchinputs

What part(s) of the article would you like to see updated?

The on.workflow_dispatch.inputs.<input_id> section documents only required and type. The description, default and options keys are not documented as headings, although the example on the same page uses all three (options for a choice input).

The workflow schema in actions/languageservices (workflow-parser/src/workflow-v1.0.json, at fb5c6e4) defines these keys for workflow_dispatch inputs:

  • description: a string description of the input parameter.
  • default: used when an input parameter isn't specified in a workflow file.
  • options: a sequence of strings; the options of the dropdown list, if the type is choice.

Suggested change: add a short section for each of on.workflow_dispatch.inputs.<input_id>.description, .default and .options, with the options section stating that it applies only to choice inputs.

Additional information

The example in data/reusables/actions/workflow-dispatch-inputs-example.md already shows options with type: choice.

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

环境准备

在 Codespaces 中打开

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

从这里开始

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

github/docs 的其他 Issue

查看 github/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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