workflow-syntax reference: `description`, `default` and `options` keys for `on.workflow_dispatch.inputs.<input_id>` are undocumented
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 88/100
- Issue-Typ
- Dokumentation
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, yaml
- Bereich
- documentation
Rechercherichtung
Beginne mit content/actions/reference/workflows-and-actions/workflow-syntax.md und suche den Abschnitt on.workflow_dispatch.inputs.<input_id>, insbesondere die vorhandenen Unterabschnitte required und type. Füge passende Unterabschnitte für description, default und options hinzu, einschließlich der im Issue beschriebenen Einschränkungen für choice. Die Aufgabe ist abgeschlossen, wenn alle drei Schlüssel dort in der vorgeschlagenen Reihenfolge und im vorgeschlagenen Stil dokumentiert sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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 UIdefault: the value used when the workflow is triggered manually without a value suppliedoptions: the list of strings shown in the dropdown for an input whosetypeischoice
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'stypeischoice.
Happy to open the corresponding PR once this issue is triaged.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 21k
- Forks
- 69.1k
- Ø Merge
- 10 Std. 14 Min.
- Gemergte PRs (30 T.)
- 106
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/docs
-
Incorrect Auto Tier Availability Information in Copilot DocumentationEvtl. vergeben @ashis-baral hat das vor 1 Tag übernommen. Offencontent triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 73/100
Maintainer antworten meist innerhalb von 1 Tag
-
builder persona content copilot
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 72/100
github/docs#46334 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Update VS Code instructions for creating a prompt fileEvtl. vergeben @ashis-baral hat das vor 4 Tagen übernommen. Offencontent
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
actions builder persona
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
github/docs#46304 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
actions builder persona
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
github/docs#46303 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
components-web-app/docs#260 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
521xueweihan/HelloGitHub#4025 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
ctrf-io/playwright-ctrf-json-reporter#117 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
voidzero-dev/void#478 ·
Maintainer antworten meist innerhalb von 1 Tag