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
平均合併
9 小時 57 分鐘
30 天內合併 PR
109

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/docs 的其他 Issue

查看 github/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。