inputs type are undocumented / contradicting
- 主要語言
- TypeScript
- 星號
- 20.8k
- 分支
- 68.7k
- 平均合併
- 13 小時 10 分鐘
- 30 天內合併 PR
- 111
描述
### Code of Conduct
- [x] I have read and agree to the GitHub Docs project's [Code of Conduct](https://github.com/github/docs/blob/main/.github/CODE_OF_CONDUCT.md)
### What article on docs.github.com is affected? / What part(s) of the article would you like to see updated?
- workflow-syntax#onworkflow_dispatchinputsinput_idtype
- https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#onworkflow_dispatchinputsinput_idtype
- https://github.com/github/docs/blob/fa4d1bcf57215fe0eae198c42d3b83f8679402a1/content/actions/reference/workflows-and-actions/workflow-syntax.md?plain=1#L264-L266
- events-that-trigger-workflows#providing-inputs
- https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#providing-inputs
- https://github.com/github/docs/blob/fa4d1bcf57215fe0eae198c42d3b83f8679402a1/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md?plain=1#L1076-L1130
- contexts#inputs-context
- https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#inputs-context
- https://github.com/github/docs/blob/fa4d1bcf57215fe0eae198c42d3b83f8679402a1/content/actions/reference/workflows-and-actions/workflow-syntax.md?plain=1#L162-L164
### Additional information
Input types are undocumented / contradicting
Particularly "environment", which, as per the documentation, seems to be a special sub-type of choice automatically populating the enum with the names of the repository's environment, but this is just a guess from the only screenshot available in the documentation
Given this, there might also even be other types
貢獻指南
研究方向
比較 content/actions/reference/workflows-and-actions/workflow-syntax.md、events-that-trigger-workflows.md,以及 issue 中連結的 contexts 區段對輸入類型的描述。先根據參照的錨點檢查文件中記載的類型和 `environment` 的行為。當相關頁面一致地記載支援的輸入類型,並解決表面上的矛盾時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github-actions
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 48/100